lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
https://lineofflight.github.io/peddler/
MIT License
307 stars 130 forks source link

Can't figure out how to get multiple products. #59

Closed hounsellal closed 6 years ago

hounsellal commented 8 years ago

I've tried passing an array into the ones that allow for multiple products. Doesn't work.

hakanensari commented 8 years ago

I'm assuming you are referring to the methods that take one or more ASINs or SKUs as argument, such as this one. Note the splat operator in the method definition. That means you have to provide the list of IDs as is rather than as an array:

res = client.get_my_price_for_asin('123', '456')
stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.