Deskripsi
Mendapatkan list subreseller
Query
v2/reseller/subresellers
List Variabel
Nama | Tipe Data | Required/Optional | Deksripsi |
---|---|---|---|
search | String(32) | Optional | resellerID / Email reseller |
limit | Integer(10) | Optional | limit yang dimunculkan dalam hasil list |
offset | Integer(10) | Optional | offset untuk keperluan paginasi |
Contoh
$post["username"] = 'apiusername'; $post["password"] = hash('sha256','apipassword'); $url = 'http://[reseller url]/api/v2/reseller/subresellers'; $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" standalone="yes"?> <epp> <result> <resultCode>1000</resultCode> <resultMsg>Get sub-reseller success</resultMsg> </result> <resultData> <resellerNum>40</resellerNum> <reseller> <username>email@reseller.id</username> <email>email@reseller.id</email> <fname>Sample</fname> <lname/> <company>N/A</company> <address>Sample Address</address> <address2/> <address3/> <city>Sample City</city> <province>Sample Province</province> <phone>62.0000000-</phone> <mphone/> <fax/> <country>95</country> <postal_code>50241</postal_code> <tax_status/> <ns1>ns1.mysrsx.com</ns1> <ns2>ns2.mysrsx.net</ns2> <ns3>ns3.mysrsx.biz</ns3> <ns4>ns4.mysrsx.org</ns4> <ns5/> <ns6/> <ns7/> <ns8/> </reseller> <reseller> <username>email@reseller.id</username> <email>email@reseller.id</email> <fname>Sample</fname> <lname/> <company>N/A</company> <address>Sample Address</address> <address2/> <address3/> <city>Sample City</city> <province>Sample Province</province> <phone>62.0000000-</phone> <mphone/> <fax/> <country>95</country> <postal_code>50241</postal_code> <tax_status/> <ns1>ns1.mysrsx.com</ns1> <ns2>ns2.mysrsx.net</ns2> <ns3>ns3.mysrsx.biz</ns3> <ns4>ns4.mysrsx.org</ns4> <ns5/> <ns6/> <ns7/> <ns8/> </reseller> <reseller> <username>email@reseller.id</username> <email>email@reseller.id</email> <fname>Sample</fname> <lname/> <company>N/A</company> <address>Sample Address</address> <address2/> <address3/> <city>Sample City</city> <province>Sample Province</province> <phone>62.0000000-</phone> <mphone/> <fax/> <country>95</country> <postal_code>50241</postal_code> <tax_status/> <ns1>ns1.mysrsx.com</ns1> <ns2>ns2.mysrsx.net</ns2> <ns3>ns3.mysrsx.biz</ns3> <ns4>ns4.mysrsx.org</ns4> <ns5/> <ns6/> <ns7/> <ns8/> </reseller> </resultData> </epp>