I am using the following example code to fetch details. And it's giving error:
amazonproduct.errors.InvalidClientTokenId: InvalidClientTokenId: The AWS Access Key Id you provided does not exist in our records.
The same is working while I used in PHP. I generated the key going to IAM Console.
access_key = '***'
secret_key = '***'
associate_tag = 'ptab-20'
api = API(locale='us')
result = api.item_lookup('B006H3MIV8')
for item in result.Items.Item:
print '%s (%s)' % (item.ItemAttributes.Title, item.ASIN)
API()? Also what isAPI()? Please dd import statement forAPI()too.api = API(AWS_KEY, SECRET_KEY, "us")instead of putting key and secret in a conf file and see if it works. If it does then it meansAPIis not able to read your conf file somehow.