No commit activity in last 3 years
No release in over 3 years
Client for the DMM Web Service API v3.0.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

ruby-dmm

Gem Version Build Status Coverage Status Code Climate Dependency Status

Client for the DMM Web Service API v3

Installation

Add this line to your application's Gemfile:

gem 'ruby-dmm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ruby-dmm

Usage

cli = DMM.new(:api_id => "YOUR-API-ID", :affiliate_id => "YOUR-AFFILIATE-ID")
response = cli.product(:site => 'DMM.com', :keyword => '超能力', :sort => 'rank')
response.result[:items].map {|x| x[:title] }
# => ["僕のヒーローアカデミア",
#     "みんな!エスパーだよ!-欲望だらけのラブ・ウォーズ-",
#     "血界戦線 Vol.6 (ブルーレイディスク)",
#     "エルフェンリート",
#     "学園アリス",
#     "ストレイヤーズ・クロニクル",
#     "Honey Bitter",
#     "MONSTERZ モンスターズ",
#     "AREA D 異能領域",
#     "十十虫は夢を見る",
#     "蝶戦士ピンクフューリーS",
#     "バビル2世 ザ・リターナー",
#     "とある科学の超電磁砲",
#     "裸心の十字架",
#     "菊池俊輔 作曲50周年 CD-BOX Composer SHUNSUKE KIKUCHI 50th Anniversary",
#     "アライブ 最終進化的少年",
#     "恋は光",
#     "ホムンクルス",
#     "目隠しの国",
#     "AKIRA"]

DMM::Client interface is very similar to dmm-js-sdk.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

See also

API Reference