aws-requests-auth support
Opened this issue · 2 comments
Im assuming the incident ticket process is for actual bugs
is there a discussion or forum to help get the plug in working?
im so close now and must be missing something
im getting an error Check your AWS Secret Access Key and signing method
it took me a while to realize it was the AccessKey and not the AccessKeyID (returned by the sts call) i need to use
Im using the SecretAccessKey returned by the sts auth
Any guidance on how i can get assistance to take this forward would be much appreciated
also the only temp code i have is from https://api.amazon.com/auth/o2/token
however the name of the auth parameter in the code is aws_token which suggests it comes from aws and not amazon seller
so im confused on this part
my code
Set the AWS credentials and create the RequestSigner object
auth = AWSRequestsAuth(
aws_access_key=access_key,
aws_secret_access_key=secret_key,
aws_token=token, # If using temporary security credentials
aws_host=host,
aws_region=region,
aws_service='execute-api'
)
url = 'https://sandbox.sellingpartnerapi-eu.amazon.com/orders/v0/orders?CreatedAfter=TEST_CASE_200&MarketplaceIds=ATVPDKIKX0DER'
response = requests.get(url, auth=auth)
print(response.content)