dmcquay / node-apac

node-apac - Node.js client for the Amazon Product Advertising API, including support of Request Signatures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get rid of annoying arrays in results

dmcquay opened this issue · comments

See what HiDAI did here: HiDAl@2a1a1ae

I'd like to consider pulling this into the core repo b/c those arrays everywhere are really annoying.

Found a solution. Would be good to document it in the README.

var opHelper = new OperationHelper({
  awsId: '[YOUR AWS ID HERE]',
  awsSecret: '[YOUR AWS SECRET HERE]',
  assocId: '[YOUR ASSOCIATE TAG HERE]',
  xml2jsOptions:  {explicitArray: false}
});