Domains Resource¶
The domains resource has all the field the bodis api returns, with some additional functionality.
Delete¶
When you get a domain from the api, you can call the delete function to delete that domain. This method calls Bodis::deleteDomain() behind the scenes.
1/* In this example, lets assume the response is returning one domain */
2$response = Bodis::searchDomains([
3 'filters' => [
4 'domains' => [
5 'test.com'
6 ]
7 ]
8]);
9
10/* grab the first domain */
11$domain = $response['data'][0];
12
13/* call the delete method */
14$domain->delete();