Sha256: 7510ab17770f4580c81ef3da6fc207d768348c570107b959ed1a2e5744a65d28

Contents?: true

Size: 324 Bytes

Versions: 12

Compression:

Stored size: 324 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

12 entries across 12 versions & 1 rubygems

Version Path
rakuten_web_service-1.12.0 examples/ichiba_item_search.rb
rakuten_web_service-1.11.0 examples/ichiba_item_search.rb
rakuten_web_service-1.10.0 examples/ichiba_item_search.rb
rakuten_web_service-1.9.2 examples/ichiba_item_search.rb
rakuten_web_service-1.9.1 examples/ichiba_item_search.rb
rakuten_web_service-1.9.0 examples/ichiba_item_search.rb
rakuten_web_service-1.8.0 examples/ichiba_item_search.rb
rakuten_web_service-1.7.0 examples/ichiba_item_search.rb
rakuten_web_service-1.6.1 examples/ichiba_item_search.rb
rakuten_web_service-1.6.0 examples/ichiba_item_search.rb
rakuten_web_service-1.5.0 examples/ichiba_item_search.rb
rakuten_web_service-1.4.2 examples/ichiba_item_search.rb