Class: Rakuten::Api::Product
- Inherits:
-
Object
- Object
- Rakuten::Api::Product
- Defined in:
- lib/rakuten/api/product.rb
Constant Summary collapse
- Search =
"Rakuten::Api::Product.search"- DetailSearch =
"Rakuten::Api::Product.detail_search"- GenreSearch =
"Rakuten::Api::Product.genre_search"
Class Method Summary collapse
-
.detail_search(opts = {}) ⇒ Object
Product Detail Search API (version:2011-07-14).
-
.genre_search(opts = {}) ⇒ Object
Product Genre Search API (version:2010-11-18).
-
.search(opts = {}) ⇒ Object
Product Search API (version:2010-11-18).
Class Method Details
.detail_search(opts = {}) ⇒ Object
Product Detail Search API (version:2011-07-14)
22 23 24 25 26 27 |
# File 'lib/rakuten/api/product.rb', line 22 def detail_search(opts={}) opts[:version] = '2011-07-14' unless opts.key?(:version) opts[:operation] = 'ProductDetail' unless opts.key?(:operation) opts[:developerId] = Rakuten::Api.[:applicationId] unless opts.key?(:developerId) Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.)) end |
.genre_search(opts = {}) ⇒ Object
Product Genre Search API (version:2010-11-18)
30 31 32 33 34 35 |
# File 'lib/rakuten/api/product.rb', line 30 def genre_search(opts={}) opts[:version] = '2010-11-18' unless opts.key?(:version) opts[:operation] = 'ProductGenreInfo' unless opts.key?(:operation) opts[:developerId] = Rakuten::Api.[:applicationId] unless opts.key?(:developerId) Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.)) end |
.search(opts = {}) ⇒ Object
Product Search API (version:2010-11-18)
14 15 16 17 18 19 |
# File 'lib/rakuten/api/product.rb', line 14 def search(opts={}) opts[:version] = '2010-11-18' unless opts.key?(:version) opts[:operation] = 'ProductSearch' unless opts.key?(:operation) opts[:developerId] = Rakuten::Api.[:applicationId] unless opts.key?(:developerId) Rakuten::Request.get("http://api.rakuten.co.jp/rws/3.0/json", opts.merge(Rakuten::Api.)) end |