caponica / AmazonMwsComplete

Name-spaced wrappers for the full set of Amazon MWS client libraries
56 stars 53 forks source link

Add facility to set an MWSAuthToken and pass it through to API calls #15

Closed alozytskyi closed 6 years ago

alozytskyi commented 6 years ago

Hi, I want to set MWS Auth token, but it's not present in any config constants or like anywhere, except for original client libraries. Is it possible to set it somehow or I'm missing something?

caponica commented 6 years ago

You don't need to - you just set the access key and secret key and the library manages the authentication.

alozytskyi commented 6 years ago

But what if I want to do the stuff on behalf of a third party? They have to give me MWS Auth token in order to allow my app to access their resources, no?

caponica commented 6 years ago

Sorry, I was in a bit of a rush earlier and clearly didn't read your question properly.

This bundle doesn't currently support using an AuthToken... it's something I'll add at some point, but I use it mainly for our in-house tools so have never needed to use an AuthToken.

When will it be added? Before Christmas is extremely unlikely. In Q1 2018 should be no problem.

caponica commented 6 years ago

MWSAuthToken support has been added in the commit #799fe0b , please provide feedback if this is working for you and includes the functionality you require. I don't use AuthToken myself so I can't really test it... so the code is just based on my understanding of the API docs.

alozytskyi commented 6 years ago

Thanks! So far as seen from my testing it seems to be working.