Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (16 sloc) 0.537 kB
#!/usr/bin/ruby -w
#
# $Id: item_search3,v 1.3 2008/04/11 19:24:24 ianmacd Exp $
require 'amazon/aws/search'
include Amazon::AWS
include Amazon::AWS::Search
is = ItemSearch.new( 'Baby', { 'Keywords' => 'pants',
'MinimumPrice' => '2500',
'MaximumPrice' => '4999' } )
rg = ResponseGroup.new( 'Small' )
req = Request.new
req.locale = 'us'
resp = req.search( is, rg )
items = resp.item_search_response[0].items[0].item
printf( "Search returned %d items.\n", items.size )
items.each { |item| puts item, '' }
Jump to Line
Something went wrong with that request. Please try again.