magento-node-api

Magento node api

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
magento-node-api
1.0.25 years ago5 years agoMinified + gzip package size for magento-node-api in KB

Readme

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