Access Prestashop webservice from JavaScript

点点圈 提交于 2019-11-30 05:29:07

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.

Although i am not php guy and i haven not used prestashop ever, but may be you forgot provide access in your crodova application this might be the issue please add

<access origin="*"/>

this to your config.xml file hopefully it will work thanks, please do not forgot mark as an answer if it helps you..

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!