Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment