t3chnoboy / amazon-product-api

:credit_card: Amazon Product Advertising API client
366 stars 104 forks source link

Default values are not set #20

Closed masterT closed 9 years ago

masterT commented 9 years ago
client.itemSearch({
  keywords: 'Pulp fiction'
}, function(err, results) {
  if (err) {
    console.log(err);
  } else {
    console.log(results);
  }
});

With this query, the expected params are:

{ Condition: 'All',
  ItemPage: '1',
  Keywords: 'Pulp fiction',
  Version: '2013-08-01',
  Timestamp: '2015-08-27T14:51:10.328Z',
  ResponseGroup: 'ItemAttributes',
  SearchIndex: 'All',
  Service: 'AWSECommerceService',
  Operation: 'ItemSearch' }

but when I printed the params, I got this:

{ Keywords: 'Pulp fiction',
  Version: '2013-08-01',
  Timestamp: '2015-08-27T14:51:10.328Z',
  Service: 'AWSECommerceService',
  Operation: 'ItemSearch' }