Stats

 Latest version : 1.0.1

 Last updated on 2015-10-15T22:22:03.944Z

 Keywords : 1, Shopping, Cart, Node, API

 Downloads :

  • 6 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

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

            });

 Comments