1.0.8 • Published 3 years ago

magento2-js v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

magento2-js

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

:scroll: License

MIT © Bruno Cordioli

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago