Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
BL committed Oct 26, 2018
2 parents 2ae2079 + ac1ef2b commit 096ac56
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions examples/javaScript/products/getMatchingProductForId.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
'use strict';

var accessKey = process.env.AWS_ACCESS_KEY_ID || 'YOUR_KEY';
var accessSecret = process.env.AWS_SECRET_ACCESS_KEY || 'YOUR_SECRET';

var amazonMws = require('../../../lib/amazon-mws')(accessKey, accessSecret);

var productRequest = function () {

amazonMws.products.search({
'Version': '2011-10-01',
'Action': 'GetMatchingProductForId',
'SellerId': 'SELLER_ID',
'MWSAuthToken': 'MWS_AUTH_TOKEN',
'MarketplaceId': 'MARKET_PLACE_ID',
'IdType': 'SellerSKU',
'IdList.Id.1': 'SKU'
}, function (error, response) {
if (error) {
console.log('error products', error);
return;
}
console.log('response', response);
});
};

productRequest();

0 comments on commit 096ac56

Please sign in to comment.