magento2-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

magento2-js

Version

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

☁️ Installation

# Using npm
npm install --save magento2-js

# Using yarn
yarn add magento2-js

📋 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();

📜 License

MIT © Bruno Cordioli

Readme

Keywords

Package Sidebar

Install

npm i magento2-js

Weekly Downloads

8

Version

1.0.8

License

MIT

Unpacked Size

147 kB

Total Files

79

Last publish

Collaborators

  • brunocordioli072