magento-node-api

1.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    4,287
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    4,287
  • 1.0.1
    2
  • 1.0.0
    2

Package Sidebar

Install

npm i magento-node-api

Weekly Downloads

31

Version

1.0.2

License

MIT

Last publish

Collaborators

  • denis
  • evgdema
  • dubkrapht