t3chnoboy / amazon-product-api

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

get response to extract the totalResults using promises #49

Open pedromguerra opened 8 years ago

pedromguerra commented 8 years ago

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

masterT commented 7 years ago

@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?

budda commented 7 years ago

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.