JSPM

magento-xmlrpc

0.3.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q29909F
  • License MIT

Magento XML-RPC API wrapper for Node.js

Package Exports

  • magento-xmlrpc

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (magento-xmlrpc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Magento XML-RPC API Wrapper

This wrapper lets you talk to Magento via XML-RPC.

It is a minimally modified version of magento and magento-api, which incorrectly advertise as being SOAP clients.

Installation

npm install magento-xmlrpc

Usage

var MagentoAPI = require('magento-xmlrpc');
var magento = new MagentoAPI({
  host: 'your.host',
  port: 443,
  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

Read the manual on Github