npm.io
1.0.2 • Published 8 years ago

magento-node-api

Licence
MIT
Version
1.0.2
Deps
2
Vulns
0
Weekly
0
Stars
1

magento-node-api

Magento API client for nodejs

Usage

const MagentoAPI = require('magento-node-api');

const magento = new MagentoAPI({
  host: 'your-magento-shop-url.com',
  login: 'soap-user',
  pass: 'soap-password'
});

// List orders
magento.init()
  .then(() => this.magento.sales_order.list())
  .then((orders) => console.log(orders));

// With params
const params = {updated_at: {from: new Date('2017-11-10')}};
magento.init()
  .then(() => this.magento.sales_order.list(params))
  .then((orders) => console.log(orders));

Keywords