amazon-product-api icon indicating copy to clipboard operation
amazon-product-api copied to clipboard

TotalPages not returned in ItemSearch

Open kyleconkright opened this issue 7 years ago • 3 comments

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.

kyleconkright avatar Jul 11 '17 05:07 kyleconkright

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 avatar Jul 25 '17 23:07 budda

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

budda avatar Jul 25 '17 23:07 budda

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

budda avatar Jul 25 '17 23:07 budda