Info Contact

Deskripsi

Info contact berdasarkan contactid atau nickhandle ( bisa menggunakan salah satu nichandle / contactid)

Query

contact/info

List Variabel

Nama Tipe Data Required/Optional Deksripsi
contactid Integer(11) Optional ID contact
nickhandle Integer(11) Optional Nickhandle contact

Contoh

$post["username"] = 'apiusername';
$post["password"] = hash('sha256','apipassword');
$post["nickhandle"] = '123abcdef'
$url = 'http://[reseller url]/api/contact/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"?>

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Command Complete Successfully</resultMsg>
  </result>
  <resultData>
    <contactid>12</contactid>
    <userid>3</userid>
    <nickhandle>01121gwh</nickhandle>
    <fname>fname</fname>
    <lname>lname</lname>
    <email>email@email.com</email>
    <company>company</company>
    <address1>address</address1>
    <address2>0</address2>
    <address3>0</address3>
    <city>city</city>
    <state>province</state>
    <phonenumber>62.35452867</phonenumber>
    <fax>62.35452888</fax>
    <country>ID</country>
    <postcode>23456</postcode>
  </resultData>
</epp>

Gagal

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