Sha256: d7942c85346162bd39e155d5cb18c5e297122ae7fc3e20d1f57fca8f8cf55c6e

Contents?: true

Size: 350 Bytes

Versions: 16

Compression:

Stored size: 350 Bytes

Contents

# encoding: utf-8

require 'rakuten_web_service'

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

RakutenWebService.configuration 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

16 entries across 16 versions & 1 rubygems

Version Path
rakuten_web_service-0.6.3 examples/ichiba_item_search.rb
rakuten_web_service-0.6.2 examples/ichiba_item_search.rb
rakuten_web_service-0.6.1 examples/ichiba_item_search.rb
rakuten_web_service-0.6.0 examples/ichiba_item_search.rb
rakuten_web_service-0.5.0 examples/ichiba_item_search.rb
rakuten_web_service-0.4.2 examples/ichiba_item_search.rb
rakuten_web_service-0.4.1 examples/ichiba_item_search.rb
rakuten_web_service-0.3.1 examples/ichiba_item_search.rb
rakuten_web_service-0.3.0 examples/ichiba_item_search.rb
rakuten_web_service-0.2.3 examples/ichiba_item_search.rb
rakuten_web_service-0.2.2 examples/ichiba_item_search.rb
rakuten_web_service-0.2.1 examples/ichiba_item_search.rb
rakuten_web_service-0.2.0 examples/ichiba_item_search.rb
rakuten_web_service-0.1.1 examples/ichiba_item_search.rb
rakuten_web_service-0.1.0 examples/ichiba_item_search.rb
rakuten_web_service-0.0.1 examples/ichiba_item_search.rb