npm.io
0.1.2 • Published 10 years ago

qmerce-frontend

Licence
MIT
Version
0.1.2
Deps
2
Vulns
0
Weekly
0

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

Keywords