{"id":1693,"date":"2018-05-26T02:23:34","date_gmt":"2018-05-26T02:23:34","guid":{"rendered":"http:\/\/kb.srs-x.com\/en\/?page_id=1693"},"modified":"2018-05-26T02:23:34","modified_gmt":"2018-05-26T02:23:34","slug":"get-reseller-price","status":"publish","type":"page","link":"https:\/\/kb.srs-x.com\/en\/api\/55281-2\/get-reseller-price","title":{"rendered":"Get Reseller Price"},"content":{"rendered":"<p><a href=\"http:\/\/kb.srs-x.com\/id\/api\/55281-2\/get-reseller-price\/\"><strong>Versi Bahasa Indonesia<\/strong><\/a><\/p>\n<h2>Description<\/h2>\n<p>Get\u00a0current reseller&#8217;s price.<\/p>\n<h2>Query<\/h2>\n<p>reseller\/getprice<\/p>\n<h2>Example<\/h2>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$post[&amp;quot;username&amp;quot;] = 'apiusername';\r\n$post[&amp;quot;password&amp;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>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&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>Versi Bahasa Indonesia Description Get\u00a0current reseller&#8217;s price. Query reseller\/getprice Example Example Response Succeed:<\/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\/en\/wp-json\/wp\/v2\/pages\/1693"}],"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=1693"}],"version-history":[{"count":1,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1693\/revisions"}],"predecessor-version":[{"id":1694,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/1693\/revisions\/1694"}],"up":[{"embeddable":true,"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/pages\/204"}],"wp:attachment":[{"href":"https:\/\/kb.srs-x.com\/en\/wp-json\/wp\/v2\/media?parent=1693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}