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