Closed ecielam closed 6 years ago
After looking a bit more at the jeff code and the MWS Amazon API docs, adding my app's aws keys to the call seems to make it work fine.
Perhaps change the readme to reflect this:
client = MWS.orders(
aws_access_key_id: "Your AWS Access Key ID",
aws_secret_access_key: "Your AWS Secret Access Key",
primary_marketplace_id: "Seller's Marketplace ID",
merchant_id: "Seller's Merchant or Seller ID",
auth_token: "Seller's MWS Authorisation Token"
)
Thanks
Ah, I see. Actually, you don't need to pass the credentials if you declare them as environment variables, but the README is confusing because of the ordering in the examples. I'll fix this, thanks.
I am trying to use peddler with third party credentials, as documented in the README.
Using the following options to client, I am getting ArgumentError: Missing secret from the 'jeff' gem on every call I've tried, including a simple #get_service_status call.
{:marketplace_id=>"AT<REDACTED>", :merchant_id=>"AF<REDACTED>", :auth_token=>"amzn.mws.<REDACTED>"}
Stack Trace:
If I use it as a first party call, it works fine.
I am using peddler 1.6.3 and jeff 2.0.0