{"id":64,"date":"2012-09-17T04:03:35","date_gmt":"2012-09-17T04:03:35","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?page_id=64"},"modified":"2018-01-25T02:39:10","modified_gmt":"2018-01-25T02:39:10","slug":"info-contact","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/contact\/info-contact","title":{"rendered":"Info Contact"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/contact\/info-contact\/\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>Get contact information based on contactid or nickhandle (use either nichandle or contactid)<\/p>\n<h2>Query<\/h2>\n<p>contact\/info<\/p>\n<h2>List Variable<\/h2>\n<div class=\"table-responsive\"><table  style=\"width:100%; \"  class=\"easy-table easy-table-cuscosky \" >\n<thead>\r\n<tr><th >Name<\/th>\n<th >Data Type<\/th>\n<th > Required\/Optional<\/th>\n<th >Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >contactid<\/td>\n<td >Integer(11)<\/td>\n<td >Optional<\/td>\n<td >ID contact<\/td>\n<\/tr>\n\r\n<tr><td >nickhandle<\/td>\n<td >Integer(11)<\/td>\n<td >Optional<\/td>\n<td >Nickhandle contact<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Example:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post[&quot;username&quot;] = 'apiusername';\r\n$post[&quot;password&quot;] = hash('sha256','apipassword');\r\n$post[&quot;nickhandle&quot;] = '123abcdef'\r\n$url = 'http:\/\/[reseller url]\/api\/contact\/info';\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>Example Response<\/h2>\n<p>Succeed:<\/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\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;contactid&gt;12&lt;\/contactid&gt;\r\n    &lt;userid&gt;3&lt;\/userid&gt;\r\n    &lt;nickhandle&gt;01121gwh&lt;\/nickhandle&gt;\r\n    &lt;fname&gt;fname&lt;\/fname&gt;\r\n    &lt;lname&gt;lname&lt;\/lname&gt;\r\n    &lt;email&gt;email@email.com&lt;\/email&gt;\r\n    &lt;company&gt;company&lt;\/company&gt;\r\n    &lt;address1&gt;address&lt;\/address1&gt;\r\n    &lt;address2&gt;0&lt;\/address2&gt;\r\n    &lt;address3&gt;0&lt;\/address3&gt;\r\n    &lt;city&gt;city&lt;\/city&gt;\r\n    &lt;state&gt;province&lt;\/state&gt;\r\n    &lt;phonenumber&gt;62.35452867&lt;\/phonenumber&gt;\r\n    &lt;fax&gt;62.35452888&lt;\/fax&gt;\r\n    &lt;country&gt;ID&lt;\/country&gt;\r\n    &lt;postcode&gt;23456&lt;\/postcode&gt;\r\n  &lt;\/resultData&gt;\r\n&lt;\/epp&gt;<\/pre>\n<p>Failed:<\/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;1001&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Command Failed&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n&lt;\/epp&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Versi Bahasa Indonesia Description Get contact information based on contactid or nickhandle (use either nichandle or contactid) Query contact\/info List Variable Example: Example Response Succeed: Failed:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":58,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/64"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":13,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/64\/revisions"}],"predecessor-version":[{"id":1624,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/64\/revisions\/1624"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/58"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}