You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A node module to interact and consume the PrestaShop shop API.
Example
varPrestan=require('prestan'),options={debug: true},prestan=newPrestan('http://myPrestaShopSiteUrl.com','MYAPIKEY000000',options);prestan.get('orders').then(function(response){console.log(response);}).catch(function(errors){console.log(errors);});//Orprestan.get('orders',{id: 1}).then(function(response){console.log(response);}).catch(function(errors){console.log(errors);});//And you can even use the filter querystringsprestan.get('orders',{'display': 'full','filter[id]': 1}).then(function(response){console.log(response);}).catch(function(errors){console.log(errors);});//You can add/edit too.prestan.get('products',{id: 1}).then(function(response){response.prestashop.product.price='1.99';returnprestan.edit('products',response,{id: 1});}).catch(function(errors){console.log(errors);});