Sha256: a2986dcc64ca611f66e190d8f9b851b4fa4613d5fedc4a315d11fe4ecdf95999
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# Amazon Product Amazon Product is a Ruby wrapper to the [Amazon Product Advertising API] [1]. [![travis](https://secure.travis-ci.org/hakanensari/amazon_product.png)](http://travis-ci.org/hakanensari/amazon_product) ## Usage Require. Set up a request. request = AmazonProduct["us"] request.configure do |c| c.key = YOUR_AMAZON_KEY c.secret = YOUR_AMAZON_SECRET c.tag = YOUR_AMAZON_ASSOCIATE_TAG end Look up a product. request << { :operation' => 'ItemLookup', :item_id' => '0679753354' } response = request.get [Or use a shorthand] [2]. response = req.find('0679753354') Consume the entire response. response.to_hash Quickly drop down to a particular node. response['Item'] Please see [the project page] [3] for more detailed info. [1]: https://affiliate-program.amazon.co.uk/gp/advertising/api/detail/main.html [2]: https://github.com/hakanensari/amazon_product/blob/master/lib/amazon_product/operations.rb [3]: http://code.papercavalier.com/amazon_product/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amazon_product-3.0.0.pre.1 | README.md |