🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@sejazipper/magento-js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sejazipper/magento-js

A Node.JS module, which provides an object oriented wrapper for the Magento v2 Rest API.

1.0.1
latest
npm
Version published
Maintainers
1
Created
Source

zipper-magento2

Version

A Node.JS module, which provides an object oriented wrapper for the Magento v2 Rest API.

:cloud: Installation

# Using npm
npm install --save magento2-js

# Using yarn
yarn add magento2-js

:clipboard: Example

const {Magento2Client} = require('magento2-js');

const options = {
  url: 'http://www.test.com/index.php/rest',
  consumerKey: '<OAuth 1.0a consumer key>',
  consumerSecret: '<OAuth 1.0a consumer secret>',
  accessToken: '<OAuth 1.0a access token>',
  accessTokenSecret: '<OAuth 1.0a access token secret>',
};
const client = Magento2Client(options);

const stores = await client.stores.list();

Keywords

magento2

FAQs

Package last updated on 06 Oct 2021

Did you know?

Socket

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