Closed redtoad closed 14 years ago
Original comment by Sebastian Rahlf (Bitbucket: basti, GitHub: basti)
I am marking this issue as //invalid// because the API does what it's supposed to do. Amazon simply seems to keep data separate for each locale - which makes sense somehow for different countries and languages.
If you have any problems with using the API, a better place to ask is the mailing list: http://groups.google.com/group/python-amazon-product-api-devel
Original comment by Anonymous
Does this support UPC as well?
I attempted to lookup a product via UPC such as: 883585179497, with IdType='UPC' but to no avail.
Original comment by Sebastian Rahlf (Bitbucket: basti, GitHub: basti)
First of all, I took a bogus ISBN-13 (with only 12 digits instead of 13) as an example.
However, when looking into this I discovered that the API returns an InvalidParameterValue error if you enter a "wrong" ISBN. Wrong, as it seems, can mean the format is wrong (too short) or or contains invalid characters (dashes "-"). Much to my surprise, wrong can even mean that you used the wrong locale!
For instance, you cannot retrieve data for an English book (ISBN 9780596158064) from locale "de" or for a German book (ISBN 9783836214063) from locale "us" - but using locale "uk" works for both!
Try your query again using a valid ISBN and play around with the locale. You can set the locale at initialisation:
#!python
from amazonproduct import API
AWS_KEY = '...'
SECRET_KEY = '...'
api = API(AWS_KEY, SECRET_KEY, "uk")
# ...
Originally reported by Anonymous
Anything other than ASIN fails. If you use the sample example in the quickstart:
You'll receive: