Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.1.1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 44 lines (32 sloc) 0.919 kb

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.

Something went wrong with that request. Please try again.