resellersrs-x:get_resellers

Description

get_resellers

Query

api/admin/get_resellers

List Variable

Nama Tipe Data Required/Optional
limit Integer Optional Limit (10)
offset Integer Optional offset(0)

Example

$post["username"] = 'user@username.com'
$post["password"] = hash('password');
$post["limit"] = '10'
$post["offset"] = '0'
$url = http://[admin url ]/api/admin/get_resellers';

$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

Berhasil

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Command Complete Successfully</resultMsg>
  </result>
  <resultData>
    <value>
      <resellerid>3</resellerid>
      <username>hisam@rumahweb.co.id</username>
      <company>hisam</company>
    </value>
  </resultData>
</epp>

Gagal

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