Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Amazon Advertising Wrapper - Use nokogiri to target the elements you want

tag: v0.3.0

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.rdoc

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

Copyright © 2009 Dan Pickett. See LICENSE for details.

Something went wrong with that request. Please try again.