1. Sebastian Rahlf
  2. python-amazon-product-api
  3. Issues
Issue #40 resolved

Multiple Items throwing exception

Jannis Gebauer
created an issue

I installed 0.2.6 pre from clone to use multiple items to lookup.

from amazonproduct import API
            AWS_KEY = '..'
            SECRET_KEY = '..'
            ASSOCIATE_TAG = '..'
            api = API(AWS_KEY, SECRET_KEY, '..',ASSOCIATE_TAG)
            result = api.item_lookup(
               ['644209004461', '009800895250', '301357583001'], IdType='UPC')

Exception:

File "/usr/local/lib/python2.6/dist-packages/python_amazon_product_api-0.2.6pre_dd3124273989-py2.6.egg/amazonproduct/api.py", line 355, in item_lookup
    'ItemId': ','.join(ids),
TypeError: sequence item 0: expected string, list found

Comments (3)

  1. Log in to comment