lineofflight / peddler

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

Using AuthToken gives 'missing secret' error #31

Closed philsmy closed 9 years ago

philsmy commented 9 years ago

Using the code from the read me on how to access another seller's mws (having been given there mws auth token) we get: ArgumentError: Missing secret from the Jeff library. That lib seems to require a secret. I don't know if this is a bug with the jeff lib, but, as the read me implies this is working I think it is a bug inside here.

hakanensari commented 9 years ago

You still have to use your own AWS key and secret in conjunction with the seller's auth token.

philsmy commented 9 years ago

Great! I'm going to give that a try. So in fact it is:

client = MWS.orders( marketplace_id: "...", merchant_id: "...", auth_token: "...", aws_access_key_id: "...", aws_secret_access_key: "..." )

hakanensari commented 9 years ago

That's correct.

systemnate commented 8 years ago

Just to confirm: You should pass YOUR (the developer's) marketplace_id, merchant_id, aws_access_key_id, and aws_secret_access_key, and you only need the user's auth_token? Thanks in advance!

hakanensari commented 8 years ago

@systemnate: It's your AWS Access Key ID and AWS Secret Access Key only. Rest is the user's.

systemnate commented 8 years ago

Thanks!