{"id":399,"date":"2014-06-06T08:30:38","date_gmt":"2014-06-06T08:30:38","guid":{"rendered":"http:\/\/kb.digitalregistra.co.id\/?page_id=399"},"modified":"2018-01-25T03:42:27","modified_gmt":"2018-01-25T03:42:27","slug":"status-forward","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/id\/api\/forward\/status-forward\/","title":{"rendered":"Status Forward"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/en\/api\/forward\/status-forward\"><strong>English version<\/strong><\/a><\/p>\n<h2>Deskripsi<\/h2>\n<p>Melihat catatan forward domain<\/p>\n<h2>Query<\/h2>\n<p>forward\/status<\/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 >Deksripsi<\/th>\n<\/tr>\n<\/thead>\n<tbody>\r\n<tr><td >domain<\/td>\n<td >varchar(255)<\/td>\n<td >Required<\/td>\n<td >Nama Domain<\/td>\n<\/tr>\n<\/tbody><\/table><\/div>\n<p>Contoh<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post['username'] = 'apiusername';\r\n$post['password'] = hash('sha256','apipassword');\r\n$post[&quot;domain&quot;] = 'domain.co.id'\r\n$url = 'http:\/\/[reseller url]\/api\/forward\/status';\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;epp&gt;\r\n  &lt;result&gt;\r\n    &lt;resultCode&gt;1000&lt;\/resultCode&gt;\r\n    &lt;resultMsg&gt;Configuration for this domain is valid for forwarding&lt;\/resultMsg&gt;\r\n  &lt;\/result&gt;\r\n  &lt;resultData&gt;\r\n    &lt;target&gt;&lt;![CDATA[http:\/\/www.domain.com]]&gt;&lt;\/target&gt;\r\n    &lt;type&gt;&lt;![CDATA[redirect]]&gt;&lt;\/type&gt;\r\n    &lt;header&gt;&lt;![CDATA[]]&gt;&lt;\/header&gt;\r\n    &lt;noframe&gt;&lt;![CDATA[]]&gt;&lt;\/noframe&gt;\r\n    &lt;subdomain&gt;&lt;![CDATA[0]]&gt;&lt;\/subdomain&gt;\r\n    &lt;path&gt;&lt;![CDATA[0]]&gt;&lt;\/path&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;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>English version Deskripsi Melihat catatan forward domain Query forward\/status List Variabel Contoh Respon Contoh Berhasil Gagal<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":393,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/399"}],"collection":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/types\/page"}],"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=399"}],"version-history":[{"count":4,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/399\/revisions"}],"predecessor-version":[{"id":2002,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/399\/revisions\/2002"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/393"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/media?parent=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}