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

get response to extract the totalResults using promises

Open pedromguerra opened this issue 9 years ago • 2 comments

How I get response (not results) to extract TotalPages, TotalResults, MoreSearchResultsUrl and so on using promises? You show an example using callbacks to get it but with promises online get the results.

Thanks in advance

pedromguerra avatar Jun 29 '16 04:06 pedromguerra

@t3chnoboy Maybe we should only return the original response in the callback and Promise. Then it API would be more consistent between the callback interface and the Promise interface. Don't you think?

masterT avatar Sep 15 '16 15:09 masterT

Is there much point in getting the TotalPages value back? From what I've just seen Amazons API will only allow an itemSearch() call to specify an itemPage of 1-5 -- anything above is invalid!

Confirmed this through the Product Advertising API console too.

budda avatar Jul 25 '17 23:07 budda