stuaroo / shiny-affiliate

Utilizes Amazon's Product Advertising API with PHP and jQuery to create remote shopping carts that can take users to checkout
9 stars 4 forks source link

Doesn't work with Kindle #2

Closed ghost closed 11 years ago

ghost commented 11 years ago

As is, this doesn't work to add Kindle books because Offers response group requests don't work for Kindle. Amazon states:

"This response group is not returned for Amazon Kindle digital books. An Amazon Kindle ASIN can be verified through the Binding, Format, and ProductTypeName response elements"

stuaroo commented 11 years ago

Yep, you are correct; you can use a different response group, ItemAttributes, to pull in some product details for Kindle eBooks (which is what that reference to Binding, Format, etc is for). You will not be able to get some info, like current pricing (I tried, closest you can get is List Price which is almost always different from the actual selling price).

Also, you can't add digital items to a cart to checkout, per Amazon:

"Digital Items, such as Kindle books and MP3 files, can be purchased only by using Amazon 1-click. They cannot be placed in the cart."

That kind of limits what we can do with Kindle eBooks, at least through the Amazon Product Advertising API. Since this store page features current prices and building remote carts through the API, I don't really see a way to put a fix in place for digital items, sorry.