No commit activity in last 3 years
No release in over 3 years
Amazon Advertising Wrapper - Use nokogiri to target the elements you want. An object oriented approach
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies
 Project Readme

ramazon_advertising¶ ↑

Ruby + Amazon Advertising == Car RAmazon_Advertising - Say Car RAmazon_Advertising!

Ruh roh' Rorge it's an object oriented approach to Amazon's overly complicated product api that has a new name every 2 weeks.

Complete with the ability to use nokogiri selectors for results

Currently only supports product search and retrieval. Requests are signed properly. More soon!

Ramazon::Configuration.access_key = "Your Access Key"
Ramazon::Configuration.secret_key = "Your Secret Key"

@products = Ramazon::Product.find(:item_id => "B000NU2CY4", :response_group => "Medium")
@products[0].title
@products[0].asin
@products[0].upc
@products[0].large_image.url
@products[0].url

#you can also use a nokogiri search string to get elements that don't have built-in accessors
@products[0].get("ItemAttributes Actor").collect{|a| a.content}

More documentation at rdoc.info/projects/dpickett/ramazon_advertising

What's under the hood?¶ ↑

  • HTTParty

  • HappyMapper

  • will_paginate

  • nokogiri

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but

    bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright © 2009 Dan Pickett. See LICENSE for details.