Info Domain

Deskripsi

Melihat detail dari domain

Query

domain/info

List Variabel

Nama Tipe Data Required/Optional Deksripsi
domain String(63) Required Nama domain yang akan dicari
api_id Integer(11) Required Nilai yang merelasikan api dengan domain

Contoh

$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);

Respon Contoh

Berhasil


<?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>

Gagal


<?xml version="1.0" encoding="UTF-8"?>
<epp><result><resultCode>1001</resultCode><resultMsg>Command Failed</resultMsg></result></epp>