t3chnoboy / amazon-product-api

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

TotalPages not returned in ItemSearch #91

Open kyleconkright opened 7 years ago

kyleconkright commented 7 years ago

From the Amazon Docs...

The total number of pages found is returned in the TotalPages response element.

I don't see this being returned in this package as expected.

budda commented 7 years ago

It's found in the 'response' variable. However, you can only get this if using callbacks rather than promises from what I can tell in the documentation.

To get the total pagesuse: response[0].TotalPages

budda commented 7 years ago

Also see https://github.com/t3chnoboy/amazon-product-api/issues/73 regarding Promises vs Callback consistency.

budda commented 7 years ago

Also, this is a dupe of https://github.com/t3chnoboy/amazon-product-api/issues/49