magento-nodejs-shipment-fix

0.0.21 • Public • Published

Magento SOAP API Wrapper

This wrapper lets you talk to Magento via SOAP.

Installation

npm install magento-nodejs

Usage

var MagentoAPI = require('magento');
var magento = new MagentoAPI({
  host: 'your.host',
  port: 80,
  path: '/api/xmlrpc/',
  login: 'your_username',
  pass: 'your_pass'
});

magento.login(function(err, sessId) {
  if (err) {
    // deal with error
    return;
  }

  // use magento
});

If need HTTPS connection

var magento = new MagentoAPI({
  host: 'your.host',
  port: 443,
  path: '/api/xmlrpc/',
  login: 'your_username',
  pass: 'your_pass',
  secure: true
});

If need be, you can manually change the session id.

magento.changeSession(newSessionId);

All of the API methods take an object of params as the first argument, and a callback as the second.

Or, if no params are sent, just a callback as the first argument.

Methods

Readme

Keywords

Package Sidebar

Install

npm i magento-nodejs-shipment-fix

Weekly Downloads

2

Version

0.0.21

License

MIT

Unpacked Size

103 kB

Total Files

69

Last publish

Collaborators

  • alexanderkh