1sc-api 中文文档教程
1SC-API
1 个购物车的节点 API
Get Started
// One Shopping Cart api
var OneShopClass=require('1sc-api');
// Get instance of api -- passing it access credentials
var OneShopApi = new OneShopClass({
merchantId: 'YOUR MERCHANT ID',
merchantKey: 'YOUR MERCHANT KEY',
apiUri: 'https://www.mcssl.com'
});
// Implements Promises
api.getClientById(123456)
.then(function(clientXML){
// parse clientXML with your favorite xml to json converter
},function(err){
// handle error
});
1SC-API
Node API for 1 Shopping Cart
Get Started
// One Shopping Cart api
var OneShopClass=require('1sc-api');
// Get instance of api -- passing it access credentials
var OneShopApi = new OneShopClass({
merchantId: 'YOUR MERCHANT ID',
merchantKey: 'YOUR MERCHANT KEY',
apiUri: 'https://www.mcssl.com'
});
// Implements Promises
api.getClientById(123456)
.then(function(clientXML){
// parse clientXML with your favorite xml to json converter
},function(err){
// handle error
});