Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't provide MWSAuthToken or other API arguments #18

Open
srchulo opened this issue Apr 8, 2020 · 2 comments
Open

Can't provide MWSAuthToken or other API arguments #18

srchulo opened this issue Apr 8, 2020 · 2 comments

Comments

@srchulo
Copy link

srchulo commented Apr 8, 2020

I have a very old version of this module (before it was even on CPAN), and I just upgraded to the one on CPAN. It looks like there is no way to provide an MWSAuthToken for a request. Previously, it was included when creating the object.

You can pass in arguments to a method, like RequestReport:

# $MWSAuthToken is not used
$mws->RequestReport(ReportType => $report_type, MWSAuthToken  => $MWSAuthToken)

But they are only used if they are specified in the parameters defined for the API call in define_api_method:

https://github.com/interchange/Amazon-MWS/blob/master/lib/Amazon/MWS/Routines.pm#L43

@srchulo srchulo changed the title Can't provide MWSAuthToken Can't provide MWSAuthToken or other API arguments Apr 8, 2020
@racke
Copy link
Member

racke commented Apr 9, 2020

Do you still have the old version of the module?

@srchulo
Copy link
Author

srchulo commented Apr 9, 2020

Thanks for the quick response. After examining it more closely, I think someone actually took your module while it was on Github before it was on CPAN and modified it :)

However, I am still having trouble with getting MWSAuthToken to work with the current module as an arg since it's not defined as a parameter for ReportRequest:

https://github.com/interchange/Amazon-MWS/blob/master/lib/Amazon/MWS/Reports.pm#L5

Am I maybe using the module incorrectly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants