mws-sdk-promises
Advanced tools
Comparing version 0.9.12 to 0.9.13
@@ -19,2 +19,4 @@ 'use strict'; | ||
function AmazonMwsClient(accessKeyId, secretAccessKey, merchantId, options) { | ||
options = options || {}; | ||
var createCredentials = tls.createSecureContext || crypto.createCredentials; | ||
@@ -29,2 +31,3 @@ this.host = options.host || 'mws.amazonservices.com'; | ||
this.merchantId = merchantId || null; | ||
this.authToken = options.authToken; | ||
} | ||
@@ -70,2 +73,6 @@ | ||
if (this.authToken) { | ||
query["MWSAuthToken"] = this.authToken; | ||
} | ||
if (api.legacy) { | ||
@@ -72,0 +79,0 @@ query['Merchant'] = this.merchantId; |
@@ -12,3 +12,3 @@ { | ||
"homepage": "http://_", | ||
"version": "0.9.12", | ||
"version": "0.9.13", | ||
"author": { | ||
@@ -15,0 +15,0 @@ "name": "Eibbor Srenduas", |
@@ -31,3 +31,3 @@ mws-sdk-promises | ||
client = new MWS.Client('accessKeyId', 'secretAccessKey', 'merchantId', {}), | ||
marketPlaceId = "ATVPDKIKX0DER"; | ||
MarketplaceId = "ATVPDKIKX0DER"; | ||
``` | ||
@@ -68,3 +68,3 @@ | ||
getListOrders(client, { | ||
marketPlaceId: "ATVPDKIKX0DER", | ||
MarketplaceId: MarketplaceId, | ||
MaxResultsPerPage: 10, | ||
@@ -71,0 +71,0 @@ CreatedAfter: new Date(1,1,2015) |
57135
13
1313