forked from Snider/php-cloudDNS
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
54 lines (33 loc) · 1.72 KB
/
README
File metadata and controls
54 lines (33 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
*
* Rackspace DNS PHP API README
* @author Alon Ben David
* @copyright CoolGeex.com
*/
PHP API binding to Rackspace Cloud DNS (US & UK)
-----------------------------------------
This is strictly for PHP5 since PHP4 should be forgotten forever.
PLEASE NOTE: any help suggestions/requests welcome
Server communication code originally from and slightly adapted,
thanks to the work of that author making this was relatively easy
@link http://snider.github.com/php-cloudDNS/
via https://github.com/eyecreate/Rackspace-Cloud-PHP-Library
All API Methods Implemented So Far: Check sample.php for code sample
$dns = new rackDNS($rs_user,$rs_api_key); //($user, $key, $endpoint = 'US') $endpoint can be UK or US
// Show all domains avalible
$dns->list_domains(50,0); //($limit = 10, $offset = 0)
$dns->list_subdomains($sampleID);//($domainID)
$dns->domain_export($sampleID);//($domainID)
$dns->list_records($sampleID);//($domainID)
$dns->list_record_details($sampleID,$recID);//($domainID,$recordID)
$dns->domain_import($sampleImport);
$dns->list_domain_search('coolgeex0007.com');
$dns->modify_domain($sampleID,'info@coolgeex0007.com'); //($domainID = false , $email = false , $ttl = 86400 , $comment = 'Modify Domain Using rackDNS API')
$dns->delete_domains($sampleID);
delete_domain_record($domainID,$recordID)
list_domain_details($domainID = false, $showRecords = false, $showSubdomains = false);
create_domain($name = false, $email = false, $records = array())
create_domain_record($domainID = false, $records = array())
create_domain_record_helper($type = false, $name = false, $data = false, $ttl = 86400, $priority = false)
$dns->getLastResponseStatus(); //returns status code
$dns->getLastResponseMessage();//returns status message