Description
Det detailed information of a domain name.
Query
domain/info
List Variable
Name | Data Type | Required/Optional | Description |
---|---|---|---|
domain | String(63) | Required | Domain name |
api_id | Integer(11) | Required | Unique domain ID |
Example:
$post["username"] = 'apiusername'; $post["password"] = hash('sha256','apipassword'); $post["domain"] = 'domainid.co.id'; $post["api_id"] = '1'; $url = 'http://[reseller url]/api/domain/info'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiurl); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post)); $response = curl_exec($ch); curl_close($ch);
Example Response
Succeeded:
<?xml version="1.0" encoding="UTF-8"?> <epp> <result> <resultCode>1000</resultCode> <resultMsg>Command Complete Successfully</resultMsg> </result> <resultData> <domainid>35</domainid> <api_id>0</api_id> <userid>3</userid> <domain>domain.co.id</domain> <startdate>2013-04-20</startdate> <enddate>2014-04-20</enddate> <contact_registrant>11</contact_registrant> <contact_admin>11</contact_admin> <contact_billing>11</contact_billing> <contact_tech>11</contact_tech> <ns1>ns1.com</ns1> <ns2>ns2.com</ns2> <ns3/> <ns4/> <status>active</status> </resultData> </epp>
Failed:
<?xml version="1.0" encoding="UTF-8"?> <epp> <result> <resultCode>1001</resultCode> <resultMsg>Command Failed</resultMsg> </result> </epp>