Customer:get

Deskripsi

Get Customer Google Apps.

Query

gapps/customer/get

List Variabel

Nama Tipe Data Required/Optional
customerid String Required nama customerid google apps nama ini sesuai dengan nama domain

Contoh

$post["username"] = 'user@username.com'
$post["password"] = hash('password');
$post["customerid"] = 'domain.com'
$url = 'http://[reseller url]/api/gapps/get';

$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>
    <kind>reseller#customer</kind>
    <customerId>domain.com</customerId>
    <customerDomain>domain.com</customerDomain>
    <postalAddress>
      <kind>customers#address</kind>
      <contactName>fname lname</contactName>
      <organizationName>organization</organizationName>
      <locality>Yogyakarta</locality>
      <region>Yogyakarta</region>
      <postalCode>55281</postalCode>
      <countryCode>ID</countryCode>
      <addressLine1>jalan</addressLine1>
      <addressLine2/>
      <addressLine3/>
    </postalAddress>
    <phoneNumber>(0627) 8888888</phoneNumber>
    <alternateEmail>domain@domain.com</alternateEmail>
  </resultData>
</epp>

Gagal

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1000</resultCode>
    <resultMsg>Failed to get Customer</resultMsg>
  </result>
  <resultData/>
</epp>