lineofflight / peddler

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

Expected(200) <=> Actual(400 Bad Request) on #61

Closed mbrinkme closed 8 years ago

mbrinkme commented 8 years ago

Hello!

I tried to use multiple asins for #get_lowest_offer_listings_for_asin. But it didn't work. @client.get_lowest_offer_listings_for_asin("3492700934, 3551354014") @client.get_lowest_offer_listings_for_asin(["3492700934", "3551354014"])

A single asin works: @client.get_lowest_offer_listings_for_asin("3492700934")

I gets the following messages:

Expected(200) <=> Actual(400 Bad Request)
#<Excon::Response:0x00000006066e58
 @body=
  "<?xml version=\"1.0\"?>\n<ErrorResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\"><Error><Type>Sender</Type><Code>InvalidParameterValue</Code><Message>3492700934, 3551354014 is not a valid ASIN</Message><Detail/></Error><RequestID>8c856b6b-e770-4fee-8448-8b026c84f210</RequestID></ErrorResponse>
``

Can you help me?
hakanensari commented 8 years ago

Please try:

@client.get_lowest_offer_listings_for_asin("3492700934", "3551354014")
mbrinkme commented 8 years ago

It works fine! Thanks