Hello.
I'm trying to create a new cart on Amazon through using the Python wrapper "python-amazon-simple-product-api". The following code runs well.
from amazon.api import AmazonAPI
amazon = AmazonAPI("valid key","valid key","valid value")
product = amazon.lookup(ItemId='B005M393OO', ResponseGroup="Large")
product.title
product.asin
Output:
'1 X 12 Washing Machine Lint Traps Aluminum Mesh With Clamps'
'B010T3VSLW'
But, when I'm trying to create a new cart, I have the following:
amazon_cart = amazon.cart_create([{'offer_id':'B010T3VSLW','quantity': 1}])
So, the response is
"AWS.InvalidParameterValue is not a valid value for OfferListingId. Please change this value and retry your request." It seems that there is some mistake in the arguments I use for the function create_cart, i.e.
cart_create([{'offer_id':'B010T3VSLW','quantity': 1}]).
Does anybody know a correct way to create a new cart?
Thank you.