smart-prestashop-api
v1.0.19
Published
A simple prestashop api sdk for node
Downloads
76
Readme
@bsight/smart-prestashop-api
Smart PrestaShop API
Installation
$ npm i smart-prestashop-api
Features
- Communicate with prestashop webservice in javascript
Basic usage
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
}
);
Different requests
get
Retrieves data from the resource passed in parameterpost
Create data with a bodyput
Modify data by entering a body and filtersdelete
Delete data by entering a body and filters like the put request