Vacuum

travis

vacuum

Vacuum is a minimal Ruby wrapper to the Amazon Product Advertising API.

Usage

require 'vacuum'

# Create a request.
req = Vacuum.new key:    'key',
                 secret: 'secret',
                 tag:    'tag',
                 locale: 'us'

# Build query.
req.build 'Operation'   => 'ItemSearch',
          'SearchIndex' => 'All',
          'Keywords'    => 'Gilles Deleuze'

# Execute.
res = request.get

# Consume response.
if res.valid?
  # res.to_hash
  res.find('Item') do |item|
    p item['ASIN']
  end
end

Read further here.