0.1.2 • Published 8 years ago
qmerce-frontend v0.1.2
qmerce-frontend
NodeJS wrapper for the Qmerce Frontend API
Installation
npm install qmerce-frontend --save
Usage
const FrontendAPI = require('qmerce-frontend');
const api = new FrontendAPI(URL, { user: USER, password: PASSWORD });
api.createCart()
.then((cart) => {
console.log("created cart " + cart.id);
return cart.addItem({
productId: "productId",
quantity: 2
});
})
.catch((err) => console.log(err));
0.1.2
8 years ago