hasham2 (owner)

Revisions

gist: 218526 Download_button fork
public
Public Clone URL: git://gist.github.com/218526.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'rubygems'
require 'abebooks4r'
 
 Abebooks4r::Abe.configure do |options|
   options[:clientkey] = ABE_ACCESS_KEY
 end
 
 Abebooks4r::Abe.debug = true
 
 res = Abebooks4r::Abe.search(:author => 'Brad Ediger', :title => 'Advanced Rails')
 
 unless res.has_error?
   res.books.each do |book|
      puts book.get('title')
      puts book.get('author')
   end
 end