Giter Site home page Giter Site logo

amazon-mws-nodejs-sdk's Introduction

#AMAZON MWS NODEJS SDK #OUT OF DEVELOPMENT - CONTACT ME FOR MORE INFO

A small SDK library providing utility to use Amazon MWS API.

Installation

npm install mws-nodejs --save

Usage

var mws = require("mws-nodejs").mws;
var config = require("./config.json");


mws.products.GetServiceStatus(config, true, function (err, data) {
    console.log("GetServiceStatus:");
    console.log(data.GetServiceStatusResponse.GetServiceStatusResult);
    console.log("\n");
});

mws.products.GetCompetitivePricingForASIN(config,{
    MarketplaceId: 'APJ6JRA9NG5V4',
    ASINList: {"ASINList.ASIN.1": "B006N7COWQ"}
}, true, function(err, data){

    console.log(data);
});
mws.products.ListMatchingProducts(config, {
    MarketplaceId: 'APJ6JRA9NG5V4',
    Query: 'Ed Sheeran',
    QueryContextId: 'Music'
},false, function (err, data) {
    console.log("ListMatchingProducts:");
    console.log(data);
    console.log("\n");
});

mws.products.GetMatchingProduct(config, {
        MarketplaceId: 'APJ6JRA9NG5V4',
        ASINList: {
            'ASINList.ASIN.1': 'B00012SYY6',
            'ASINList.ASIN.2': 'B00004CZ0F'
        }
    }, true, function (err, data) {
        console.log("GetMatchingProduct:");
        console.log(data);
        console.log("\n");
    }
);

mws.products.GetMatchingProductForId(config, {
    MarketplaceId: 'APJ6JRA9NG5V4',
    IdType: 'ASIN',
    IdList: {"IdList.Id.1": 'B00012SYY6'}
}, true, function (err, data) {
    console.log("GetMatchingProductForId:");
    console.log(data);
    console.log("\n");

});

mws.products.GetCompetitivePricingForSKU(config, {
    MarketplaceId: 'APJ6JRA9NG5V4',
    SellerSKUList: []
}, true, function (err, data) {
    console.log("GetCompetitivePricingForSKU:");
    console.log(data);
    console.log("\n");

});

Config look-like

{
  "SellerId" : "xxx",
  "DeveloperAccountNumber" : "xxx",
  "AWSAccessKeyId" : "xxx",
  "SecretKey" : "xxx",
  "MWSAuthorizationToken" : "xxx",
  "AmazonServicesURL": "mws.amazonservices.com"
}

AmazonServicesURL endpoints can be refers to http://docs.developer.amazonservices.com/en_CA/dev_guide/DG_Endpoints.html

## Contributors

Jakub Gabčo
Zdeněk Pečínka

Product Version

0.3.3

amazon-mws-nodejs-sdk's People

Contributors

thelordbaski avatar zdeno29 avatar gorlux avatar matthewpattell avatar kangks avatar namanattri avatar shadim avatar te-yujianishiyama avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.