Skip to content

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

License

Notifications You must be signed in to change notification settings

brunocordioli072/magento2-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published