magento

0.0.4 • Public • Published

Magento SOAP API Wrapper

This wrapper lets you talk to Magento via SOAP.

Installation

npm install magento

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    59
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    59
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i magento

Weekly Downloads

59

Version

0.0.4

License

MIT

Last publish

Collaborators

  • madisonreedadmin