From 1060da5c87dbcc8ead2580c304be6be9431f6d34 Mon Sep 17 00:00:00 2001 From: oldstreams Date: Sun, 25 Sep 2016 17:25:05 +0800 Subject: [PATCH] "Condition: 'All'" should not be a default option. if Condition is all, then item.Offers[0].Price will be a lowest price. if Condition is not set, item.Offers[0].Price will be amazon main price. Condition is not required option, I think the implements of scratchpad is right. (ref: http://webservices.amazon.com/scratchpad/index.html ) --- lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 1a22456..585f2a2 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -42,7 +42,7 @@ var formatQueryParams = function (query, method, credentials) { // Default params = setDefaultParams(params, { SearchIndex: 'All', - Condition: 'All', + // Condition: 'All', ResponseGroup: 'ItemAttributes', Keywords: '', ItemPage: '1' @@ -52,7 +52,7 @@ var formatQueryParams = function (query, method, credentials) { // Default params = setDefaultParams(params, { SearchIndex: 'All', - Condition: 'All', + // Condition: 'All', ResponseGroup: 'ItemAttributes', IdType: 'ASIN', IncludeReviewsSummary: 'True',