Open philsmy opened 3 years ago
ya i haven't implemented "grantless operations" in this gem but would welcome the contribution: https://github.com/ericcj/amz_sp_api/issues/3#issuecomment-823332904
For Feeds API i'm getting following error on
2.4.3 :034 > response = feeds.create_feed_document({"contentType" => 'JSON_LISTINGS_FEED'})
85", "x-amzn-ErrorType"=>"AccessDeniedException", "x-amz-apigw-id"=>"GsklMFiJjoEF5DQ="} Response body: { "errors": [ { "message": "Access to requested resource is denied.", "code": "Unauthorized", "details": "" } ] }
Any thought?
Thanks :)
@AteqEjaz Late answer but your issue is unrelated I think so you should open a new one.
I appreciate that it is early days for this gem, but, I'm excited by the potential of it!
I need to figure out the first steps - i.e. either direct LWA access or using our existing MWS auth tokens to access data. So I am looking at the get_authorization_code call, which should convert an existing mws auth token into an lws token.
I use the code from the read me to set up my config block:
and then do:
I get back this:
I am not sure how this call SHOULD work (actually examples of using the SP-API seem thin on the ground), but I don't think it should be using the refresh_token (especially when it is
nil
)