Client for the DMM Web Service API v3
Add this line to your application's Gemfile:
gem 'ruby-dmm'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby-dmm
client = 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.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request