1.0.2 • Published 6 years ago

magento-node-api v1.0.2

Weekly downloads
5,882
License
MIT
Repository
github
Last release
6 years ago

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));