Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I interact with the Amazon Product Advertising API in my Rails app?

I'm building a Rails web app and was wondering what is the best way to get a list of products that Amazon would return based on a search term?

For example, if I sent amazon the term "iphone", I'd get a list of iphones back from Amazon.

Does anyone know if there's a gem or library for Rails out there that would fit this need?

like image 548
Johnny Tee Avatar asked Oct 19 '09 03:10

Johnny Tee


People also ask

What is API in Amazon affiliate?

Product Advertising API. The Product Advertising API provides programmatic access to Amazon's product selection and discovery functionality so that developers can integrate Amazon products directly into your website. Access millions of products.


2 Answers

I've always used the amazon-ecs gem. Despite the name, it looks like it's still under active development (last updated August 27th, 2009).

http://github.com/jugend/amazon-ecs

Here is a blog post that might help you on your way:

http://www.pluitsolutions.com/projects/amazon-ecs

like image 89
Carlos Avatar answered Oct 18 '22 05:10

Carlos


So the Ruby/AWS library is the way to go. There is a pretty good tutorial here

Pablo, ruby-aaws worked nearly out of the box for me. I just had to setup a .amazonrc file with the configuration options like my amazon affiliate id and AWS public and secret keys.

like image 43
umassthrower Avatar answered Oct 18 '22 05:10

umassthrower