{"action":"created","issue":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9964","repository_url":"https://api.github.com/repos/PrestaShop/PrestaShop","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9964/labels{/name}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9964/comments","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9964/events","html_url":"https://github.com/PrestaShop/PrestaShop/issues/9964","id":353157134,"node_id":"MDU6SXNzdWUzNTMxNTcxMzQ=","number":9964,"title":"[BOOM-3331] I need the API for which supports 1.7.1.2","user":{"login":"prestonBot","id":20399011,"node_id":"MDQ6VXNlcjIwMzk5MDEx","avatar_url":"https://avatars1.githubusercontent.com/u/20399011?v=4","gravatar_id":"","url":"https://api.github.com/users/prestonBot","html_url":"https://github.com/prestonBot","followers_url":"https://api.github.com/users/prestonBot/followers","following_url":"https://api.github.com/users/prestonBot/following{/other_user}","gists_url":"https://api.github.com/users/prestonBot/gists{/gist_id}","starred_url":"https://api.github.com/users/prestonBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestonBot/subscriptions","organizations_url":"https://api.github.com/users/prestonBot/orgs","repos_url":"https://api.github.com/users/prestonBot/repos","events_url":"https://api.github.com/users/prestonBot/events{/privacy}","received_events_url":"https://api.github.com/users/prestonBot/received_events","type":"User","site_admin":false},"labels":[{"id":985939934,"node_id":"MDU6TGFiZWw5ODU5Mzk5MzQ=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/1.7.1.2","name":"1.7.1.2","color":"8cffda","default":false},{"id":19737369,"node_id":"MDU6TGFiZWwxOTczNzM2OQ==","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Bug","name":"Bug","color":"d4c5f9","default":false},{"id":984870401,"node_id":"MDU6TGFiZWw5ODQ4NzA0MDE=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/Minor","name":"Minor","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-22T23:00:28Z","updated_at":"2018-08-22T23:00:50Z","closed_at":null,"author_association":"COLLABORATOR","body":"\n> This issue has been migrated from the Forge. Read the [original ticket here](http://forge.prestashop.com/browse/BOOM-3331).\n\n- _**Reporter:**_ gauri\n- _**Created at:**_ Tue, 27 Jun 2017 15:31:00 +0200\n\n\n<p>Hello,<br/>\nWhere I can get Prestashop Web service API documentation which supports 1.7 version.<br/>\nThere is no any documentation on the site. Only web service library is available for 1.6 versions.</p>\n\n<p>Please help us as soon as possible.</p>\n        \n* How to reproduce the issue ?\n\nN/A\n                    "},"comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments/415214102","html_url":"https://github.com/PrestaShop/PrestaShop/issues/9964#issuecomment-415214102","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/9964","id":415214102,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTIxNDEwMg==","user":{"login":"prestonBot","id":20399011,"node_id":"MDQ6VXNlcjIwMzk5MDEx","avatar_url":"https://avatars1.githubusercontent.com/u/20399011?v=4","gravatar_id":"","url":"https://api.github.com/users/prestonBot","html_url":"https://github.com/prestonBot","followers_url":"https://api.github.com/users/prestonBot/followers","following_url":"https://api.github.com/users/prestonBot/following{/other_user}","gists_url":"https://api.github.com/users/prestonBot/gists{/gist_id}","starred_url":"https://api.github.com/users/prestonBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prestonBot/subscriptions","organizations_url":"https://api.github.com/users/prestonBot/orgs","repos_url":"https://api.github.com/users/prestonBot/repos","events_url":"https://api.github.com/users/prestonBot/events{/privacy}","received_events_url":"https://api.github.com/users/prestonBot/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T23:00:50Z","updated_at":"2018-08-22T23:00:50Z","author_association":"COLLABORATOR","body":"\n> This comment has been migrated from the Forge. Read the [original comment here](http://forge.prestashop.com/browse/BOOM-3331#comment-149162).\n\n- _**Author:**_ gauri\n- _**Created at:**_ Wed, 28 Jun 2017 09:54:46 +0200\n\n\n<p>Hello, <br/>\nWe are trying to connect following url through API.<br/>\n<a href=\"http://test.hydrao.com/api?&ws_key=3A2UC86IN3ML1XBKW9VENLW5DT6WXRZ6\" class=\"external-link\" rel=\"nofollow\">http://test.hydrao.com/api?&ws_key=3A2UC86IN3ML1XBKW9VENLW5DT6WXRZ6</a><br/>\nwe are trying to retrieve customers from prestshop and using following method.But we ar getting Bad HTTP Response. </p>\n\n<p>The API folder is not found in our folder structure of Prestashop.</p>\n\n<p>public function get($options)<br/>\n\t{<br/>\n//echo \"heree\";exit;<br/>\n\t\tif (isset($options<span class=\"error\">&#91;&#39;url&#39;&#93;</span>))<br/>\n\t\t\techo \"url\".$url = $options<span class=\"error\">&#91;&#39;url&#39;&#93;</span>;<br/>\n\t\telseif (isset($options<span class=\"error\">&#91;&#39;resource&#39;&#93;</span>))</p>\n\t\t{\n\t\t\t//echo \"hiii\";\n\t\t$url = $this->url.'api/'.$options['resource'];\n\t\t\t//$url = $this->url.'?url='.$options['resource'];\n\t\t\t$url_params = array();\n\t\t\t//if (isset($options[11]))\n\t\t\t//\t$url .= '/'.$options[11];\n\t\t//echo \"hhhh\";exit;\n\t\t\t$params = array('filter', 'display', 'sort', 'limit', 'id_shop', 'id','id_group_shop');\n//secho '<pre>';print_r($params);exit;\n\t\t\tforeach ($params as $p)\n\t\t\t\tforeach ($options as $k => $o)\n\t\t\t\t\tif (strpos($k, $p) !== false)\n\t\t\t\t\t\t$url_params[$k] = $options[$k];\n\t\t\tif (count($params) > 0)\n  //echo \"KKKKK\";exit;\n\t\t\t\techo \"MMMM\".$url .= '?'.http_build_query($url_params);\n\t\t}\n<p>\t\telse<br/>\n\t\t\tthrow new PrestaShopWebserviceException('Bad parameters given');</p>\n\n<p>\t\t$request = self::executeRequest($url, array(CURLOPT_CUSTOMREQUEST => 'GET'));</p>\n\n<p>\t\tself::checkStatusCode($request<span class=\"error\">&#91;&#39;status_code&#39;&#93;</span>);// check the response validity<br/>\n\t\treturn self::parseXML($request<span class=\"error\">&#91;&#39;response&#39;&#93;</span>);<br/>\n\t}</p>\n        "}}
{"actor":{"display_login":"prestonBot"}}