RDMM2
A Ruby client for DMM Web Service API 2.0
DMM Web Service 2.0の、Ruby用クライアントライブラリです。
Installation
Add this line to your application's Gemfile:
gem 'rdmm2'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rdmm2
Usage
client = RDMM2::ItemListOperation.new(YOUR_API_ID, YOUR_AFFILIATE_ID)
result = client.request.execute
result = client.request.site('DMM.co.jp').keyword('巨乳').execute
result = client.request.hits(100).offset(:date).execute
result.result_count
result.total_count
result.first_position
result.items.item[0].service_name
result.items.item[0].floor_name
result.items.item[0].category_name
result.items.item[0].content_id
result.items.item[0].product_id
result.items.item[0].title
result.items.item[0].URL
result.items.item[0].affiliateURL
result.items.item[0].URLsp
result.items.item[0].affiliateURLsp
result.items.item[0].imageURL.list
result.items.item[0].imageURL.small
result.items.item[0].imageURL.large
specファイルも参照してください。
Contributing
- Fork it ( https://github.com/[my-github-username]/rdmm2/fork )
- 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 a new Pull Request