1.1.0 • Published 9 years ago

prestan v1.1.0

Weekly downloads
28
License
MIT
Repository
github
Last release
9 years ago

Prestan

A node module to interact and consume the PrestaShop shop API.

Example

var Prestan = require('prestan'),
    options = {debug: true},
    prestan = new Prestan('http://myPrestaShopSiteUrl.com', 'MYAPIKEY000000', options);

prestan.get('orders').then(function(response) {
    console.log(response);
}).catch(function(errors) {
    console.log(errors);
});

//Or

prestan.get('orders', {id: 1}).then(function(response) {
    console.log(response);
}).catch(function(errors) {
    console.log(errors);
});

//And you can even use the filter querystrings

prestan.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';
    return prestan.edit('products', response, {
        id: 1
    });
}).catch(function(errors) {
    console.log(errors);
});
1.1.0

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago