Subsribe:insert

Deskripsi

Create Subscription. Jika Anda belum membuat customer silahkan melihat referenci create customer di : http://kb.digitalregistra.co.id/?page_id=237

Query

gapps/subscribe/insert

List Variabel

Nama Tipe Data Required/Optional
domain String Required Nama Domain
email String Required Email
skuid String Required Produk Google Apps (Google-Apps-For-Business)
planname String Required ANNUAL FLEXIBLE TRIAL
maxnumberofseats Integer Required Jumlah Seats
orderid Integer Required Parameter terkait dengan order billing pihak ketiga

Contoh

$post["username"] = 'user@username.com'
$post["password"] = hash('password');
$post["domain"] = 'domain.com'
$post["email"] = 'email@domain.com'
$post["skuid"] = 'Google-Apps-For-Business'
$post["planname"] = 'TRIAL'
$post["maxnumberofseats"] = '10'
$post["orderid"] = '987'
$url = 'http://[reseller url]/api/gapps/subsribe/insert';

$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>
</epp>

Gagal

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

Customer:patch

Deskripsi

Patch Data Customer.

Query

gapps/customer/patch

List Variabel

Nama Tipe Data Required/Optional
userid Integer Required ID Customer
domain String Required Nama domain yang mendaftar Google Apps

Contoh

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

$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/>
</epp>

Gagal

<?xml version="1.0" encoding="UTF-8"?>
<epp>
  <result>
    <resultCode>1001</resultCode>
    <resultMsg>Resource Doesn't Exists</resultMsg>
  </result>
</epp>

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>

Customer:insert

Deskripsi

Create Customer Google Apps. Jika Anda belum membuat customer silahkan melihat referenci create customer di : http://kb.digitalregistra.co.id/?page_id=237

Query

gapps/customer/insert

List Variabel

Nama Tipe Data Required/Optional
userid Integer Required ID User
domain String Required Nama domain

Contoh

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

$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>
    <customerid>14</customerid>
  </resultData>
</epp>

Gagal

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