Marketcloud NodeJS SDK
This is the repository for Marketcloud's official nodejs client library. Please refer to the website for documentation and more information
Installation
npm install marketcloud-node
Updating
Please remember to check the changelog for important information whenever updating to the latest version!
Documentation
The official documentation is available at http://www.marketcloud.it/documentation/nodejs
API overview
You can interact with the api through a Marketcloud.Client instance
var Marketcloud = ;var marketcloud = public_key : 'your-public-key-here' secret_key : 'your-secret-key-here'
Every resource method, returns a promise:
var product = name : 'Sandman #3' price : 999 stock_type : 'track' stock_level : 10 author : 'Neil Gaiman' publisher : 'Vertigo' images : 'https://images.com/comic_cover.jpg' //Save the productmarketcloudproducts //Retrieve a particular productmarketcloudproducts; // Create an ordervar new_order = billing_address : ... shipping_address : ... items : product_id:1 variant_id : 1quantity:1 marketcloudorders;