{"id":324,"date":"2013-06-25T03:19:11","date_gmt":"2013-06-25T03:19:11","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?p=324"},"modified":"2013-06-25T07:17:38","modified_gmt":"2013-06-25T07:17:38","slug":"customerget","status":"publish","type":"post","link":"https:\/\/kb.srs-x.com\/id\/customerget\/","title":{"rendered":"Customer:get"},"content":{"rendered":"<h2>Deskripsi<\/h2>\n<p>Get Customer Google Apps. <\/p>\n<h2>Query<\/h2>\n<p>gapps\/customer\/get<\/p>\n<h2>List Variabel<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Nama<\/th>\n<th >Tipe Data<\/th>\n<th > Required\/Optional<\/th>\n<th ><\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >customerid<\/td>\n<td >String<\/td>\n<td >Required<\/td>\n<td >nama customerid google apps<\/td>\n<td > nama ini sesuai dengan nama domain<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Contoh<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post[&quot;username&quot;] = 'user@username.com'\r\n$post[&quot;password&quot;] = hash('password');\r\n$post[&quot;customerid&quot;] = 'domain.com'\r\n$url = 'http:\/\/[reseller url]\/api\/gapps\/get';\r\n\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_URL, $apiurl);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_TIMEOUT, 100);\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));\r\n$response = curl_exec($ch);\r\ncurl_close($ch);\r\n<\/pre>\n<h2>Respon Contoh<\/h2>\n<p>Berhasil<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Complete Successfully&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;kind&gt;reseller#customer&lt;\/kind&gt;\r\n    &lt;customerId&gt;domain.com&lt;\/customerId&gt;\r\n    &lt;customerDomain&gt;domain.com&lt;\/customerDomain&gt;\r\n    &lt;postalAddress&gt;\r\n      &lt;kind&gt;customers#address&lt;\/kind&gt;\r\n      &lt;contactName&gt;fname lname&lt;\/contactName&gt;\r\n      &lt;organizationName&gt;organization&lt;\/organizationName&gt;\r\n      &lt;locality&gt;Yogyakarta&lt;\/locality&gt;\r\n      &lt;region&gt;Yogyakarta&lt;\/region&gt;\r\n      &lt;postalCode&gt;55281&lt;\/postalCode&gt;\r\n      &lt;countryCode&gt;ID&lt;\/countryCode&gt;\r\n      &lt;addressLine1&gt;jalan&lt;\/addressLine1&gt;\r\n      &lt;addressLine2\/&gt;\r\n      &lt;addressLine3\/&gt;\r\n    &lt;\/postalAddress&gt;\r\n    &lt;phoneNumber&gt;(0627) 8888888&lt;\/phoneNumber&gt;\r\n    &lt;alternateEmail&gt;domain@domain.com&lt;\/alternateEmail&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n<p>Gagal<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Failed to get Customer&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData\/&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Deskripsi Get Customer Google Apps. Query gapps\/customer\/get List Variabel Contoh Respon Contoh Berhasil Gagal<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts\/324"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/comments?post=324"}],"version-history":[{"count":3,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts\/324\/revisions"}],"predecessor-version":[{"id":337,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/posts\/324\/revisions\/337"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/media?parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/categories?post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/tags?post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}