{"id":2036,"date":"2018-05-24T09:04:30","date_gmt":"2018-05-24T09:04:30","guid":{"rendered":"http:\/\/kb.srs-x.com\/id\/?page_id=2036"},"modified":"2018-06-12T06:42:42","modified_gmt":"2018-06-12T06:42:42","slug":"get-reseller-price","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/id\/api\/55281-2\/get-reseller-price\/","title":{"rendered":"Get Reseller Price"},"content":{"rendered":"<p><strong><a href=\"http:\/\/kb.srs-x.com\/en\/api\/55281-2\/get-reseller-price\">English version<\/a><\/strong><\/p>\n<h2>Deskripsi<\/h2>\n<p>Dapatkan pricelist reseller<\/p>\n<h2>Query<\/h2>\n<p>reseller\/getprice<\/p>\n<p>Contoh<\/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$url = 'http:\/\/[reseller url]\/api\/reseller\/getprice';\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;file&gt;http:\/\/srb3.srs-x.com\/asset\/downloads\/1527152221-RID3-pricelist.csv&lt;\/file&gt;\r\n&lt;\/resultData&gt;\r\n&lt;\/epp&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>English version Deskripsi Dapatkan pricelist reseller Query reseller\/getprice Contoh Respon Contoh Berhasil<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":204,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/2036"}],"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=2036"}],"version-history":[{"count":7,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/2036\/revisions"}],"predecessor-version":[{"id":2044,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/2036\/revisions\/2044"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/pages\/204"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/id\/wp-json\/wp\/v2\/media?parent=2036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}