Access Prestashop webservice from JavaScript

前端 未结 2 582
慢半拍i
慢半拍i 2020-12-29 16:41

In the Prestashop backend I activated the webservice and I created an authentication key. Testing in browser works well but now I want to access the webservice via JavaScrip

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 17:09

    Finally, I figured out how to send the ws_key:

    $http({
            method: 'get',
            url: ws_url + 'customers/?schema=blank',
            params: {
                ws_key: ws_key
            });
    

    You have to pass the ws_key param with your key to access the PrestaShop webservice.

提交回复
热议问题