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