Socket
Socket
Sign inDemoInstall

magento-nodejs-shipment-fix

Package Overview
Dependencies
32
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

magento-nodejs-shipment-fix

Magento SOAP API wrapper for Node.js


Version published
Maintainers
1
0

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 21 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc