@bsight/smart-prestashop-api
$ npm i smart-prestashop-api
- Communicate with prestashop webservice in javascript
const PrestaShop = require("smart-prestashop-api");
const options = {
url: 'http://my-prestashop.com/',
token: '<TOKEN>'
};
const clients = new PrestaShop(options);
await clients.get({
resource: 'customers',
display: 'full',
limit: 15
}
);
-
get
Retrieves data from the resource passed in parameter -
post
Create data with a body -
put
Modify data by entering a body and filters -
delete
Delete data by entering a body and filters like the put request