Closed test2mailer closed 6 years ago
I'm not sure if this is the problem, but you're calling the method with odd parameters.
E.g. it should be something like $orderClientPack->callListOrdersByLastUpdatedDate($yesterdayDate);
And the code should manage the throttling for you already - it knows the expected gaps between requests so puts in pauses if you try to make to many calls. If a "request throttled" response comes back from Amazon then it will wait double the normal time and try that call again (once) before throwing an Exception.
Is this MWSAuthToken part valid? I can't see that function parameters to send the MWSAuthToken along, the callListOrdersByLastUpdatedDate only takes 2 parameters
$mwsResponse = $orderClientPack->callListOrdersByLastUpdatedDate($todayDate,[],['MWSAuthToken'=> env('MWS_AUTH_TOKEN')]);
AuthToken support has been added in #799fe0b - please let me know if this is working for you as required. I don't use AuthToken myself so it's hard to test!
Hii Friend, I am integrating this package for ordersList API but it is alway returning null values for "x-mws-quota-max", "x-mws-quota-remaining" and "x-mws-quota-resetsOn" in ResponseHeaderMetadata.
here are request codes:
and here are response:
and also can you please guide me how to manage throttling flow.
-- Thanks