# Amazon API in Rails

**URL:** <https://www.ruby-forum.com/t/amazon-api-in-rails/73936>\
**Category:** Rails\
**Created:** [October 28, 2006, 6:42am UTC](https://www.ruby-forum.com/t/amazon-api-in-rails/73936 "2006-10-28T06:42:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfromrest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c67d28/32.png) [@farfromrest](https://www.ruby-forum.com/u/farfromrest)\
**Post date:** [October 28, 2006, 6:42am UTC](https://www.ruby-forum.com/t/amazon-api-in-rails/73936/1 "2006-10-28T06:42:13Z")

</div>

Ok, I am a big time rails noob and I need to pull some products  
dynamically from amazon. I have done it before with Zend’s PHP  
framework, but im so lost with ruby and rails.

I have seen and tried to get a couple things going. Like  
[http://www.caliban.org/ruby/ruby-amazon/](http://www.caliban.org/ruby/ruby-amazon/).

I just need a good tutorial on how to set it up. Everything I find seems  
to assume I know something. Well thanks to any help.

---

<div class="post-metadata">

**Author:** ![farfromrest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c67d28/32.png) [@farfromrest](https://www.ruby-forum.com/u/farfromrest)\
**Post date:** [October 29, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/amazon-api-in-rails/73936/2 "2006-10-29T18:17:25Z")

</div>

On Oct 28, 2006, at 12:42 AM, Derek D. wrote:

> Ok, I am a big time rails noob and I need to pull some products  
> dynamically from amazon. I have done it before with Zend’s PHP  
> framework, but im so lost with ruby and rails.
> 
> I have seen and tried to get a couple things going. Like  
> [http://www.caliban.org/ruby/ruby-amazon/](http://www.caliban.org/ruby/ruby-amazon/).
> 
> I just need a good tutorial on how to set it up. Everything I find  
> seems to assume I know something. Well thanks to any help.

It’s probably a good idea to get a feeling for Ruby and Rails using  
some of the standard tutorials. The Agile Web D. book is a  
usual first step, but there are other books and numerous tutorials on  
the web.

To get started (presuming you have a development key and associates  
ID), put the ruby-amazon files in your lib folder, then load up  
script/console and type:

> require ‘amazon/search.rb’  
> include Amazon::Search  
> req = Request.new(dev\_key, associates\_id)  
> result = req.asin\_search(‘097669400X’)

You might also like to look at my loads\_from\_amazon plugin:

> **[loads\_from\_amazon (Ruby on Rails plugin)](https://jystewart.net/2006/07/20/loads_from_amazon-ruby-on-rails-plugin/)**
>
> UPDATE (10/2008): This plugin is no longer maintained. I’d recommend looking at one of the newer alternatives such as acts\_as\_amazon\_product if you need this functionality. I’ve been pr…

on-rails-plugin/  
[http://projects.jystewart.net/svn/rails/loads\_from\_amazon/trunk/](http://projects.jystewart.net/svn/rails/loads_from_amazon/trunk/)

James.

–  
James S. : Web D.  
Work : [http://jystewart.net](http://jystewart.net)  
Play : [http://james.anthropiccollective.org](http://james.anthropiccollective.org)

---

<div class="post-metadata">

**Author:** ![farfromrest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c67d28/32.png) [@farfromrest](https://www.ruby-forum.com/u/farfromrest)\
**Post date:** [October 30, 2006, 2:01pm UTC](https://www.ruby-forum.com/t/amazon-api-in-rails/73936/3 "2006-10-30T14:01:55Z")

</div>

James S. wrote:

> On Oct 28, 2006, at 12:42 AM, Derek D. wrote:  
> …  
> It’s probably a good idea to get a feeling for Ruby and Rails using  
> some of the standard tutorials. The Agile Web D. book is a  
> usual first step, but there are other books and numerous tutorials on  
> the web.  
> …  
> James.
> 
> –  
> James S. : Web D.  
> Work : [http://jystewart.net](http://jystewart.net)  
> Play : [http://james.anthropiccollective.org](http://james.anthropiccollective.org)

I agree with James if your new to Rails get the Agile Web D.  
book there is a second edition out now in pdf.  
Also have a look at the rails recipes book which has alot of solutions  
to common problems.

---

<div class="post-metadata">

**Author:** ![farfromrest](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/c67d28/32.png) [@farfromrest](https://www.ruby-forum.com/u/farfromrest)\
**Post date:** [October 30, 2006, 2:36pm UTC](https://www.ruby-forum.com/t/amazon-api-in-rails/73936/4 "2006-10-30T14:36:40Z")

</div>

Adrian Lansdown wrote:

> James S. wrote:
> 
> > On Oct 28, 2006, at 12:42 AM, Derek D. wrote:  
> > …  
> > It’s probably a good idea to get a feeling for Ruby and Rails using  
> > some of the standard tutorials. The Agile Web D. book is a  
> > usual first step, but there are other books and numerous tutorials on  
> > the web.  
> > …  
> > James.
> > 
> > –  
> > James S. : Web D.  
> > Work : [http://jystewart.net](http://jystewart.net)  
> > Play : [http://james.anthropiccollective.org](http://james.anthropiccollective.org)
> 
> I agree with James if your new to Rails get the Agile Web D.  
> book there is a second edition out now in pdf.  
> Also have a look at the rails recipes book which has alot of solutions  
> to common problems.

Hi Adrian,

Please mail me the soft copy of the pdf. That would be of great help to  
me and I am lot in need of it.

removed\_email\_address@domain.invalid

Thanks and Regards,  
San.
