zipper-magento-integration
zipper-magento-integration
Installation
The library can be installed using the Npm package manager:
npm install --save github:zipper-team/zipper-magento-integration
Usage
The code sample below shows the usage of the library:
const { MagentoIntegration } = require("zipper-magento-integration");
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 = MagentoIntegration(options);
const stores = await client.product.saveForStores([...products], { storeNames: [...storeNames]});