Sha256: 74f84390a99d915b816818cb6479fe6d09dae4998c16a232d5b4d28bd8805c8c

Contents?: true

Size: 327 Bytes

Versions: 8

Compression:

Stored size: 327 Bytes

Contents

require 'rakuten_web_service'

application_id = ARGV.shift
keyword = ARGV[0..-1].join(' ')

RakutenWebService.configure do |c|
  c.application_id = application_id
end

items = RakutenWebService::Ichiba::Item.search(:keyword => keyword)

items.first(10).each do |item|
  puts "#{item['itemName']}, #{item['itemPrice']} yen"
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rakuten_web_service-1.4.1 examples/ichiba_item_search.rb
rakuten_web_service-1.4.0 examples/ichiba_item_search.rb
rakuten_web_service-1.3.0 examples/ichiba_item_search.rb
rakuten_web_service-1.2.0 examples/ichiba_item_search.rb
rakuten_web_service-1.1.1 examples/ichiba_item_search.rb
rakuten_web_service-1.1.0 examples/ichiba_item_search.rb
rakuten_web_service-1.0.0 examples/ichiba_item_search.rb
rakuten_web_service-1.0.0.rc1 examples/ichiba_item_search.rb