
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
A Ruby client for DMM Web Service API 2.0
DMM Web Service 2.0の、Ruby用クライアントライブラリです。
Add this line to your application's Gemfile:
gem 'rdmm2'
And then execute:
$ bundle
Or install it yourself as:
$ gem install rdmm2
## クライアントの生成
client = RDMM2::ItemListOperation.new(YOUR_API_ID, YOUR_AFFILIATE_ID)
## 検索の実行
# 設定できる検索条件はDMM Web Service 2.0仕様を参照してください。
# 下記は検索条件設定の一例です。
# 'DMM.com'を条件無しで検索 (デフォルト)
result = client.request.execute
# 'DMM.co.jp'をキーワード検索
result = client.request.site('DMM.co.jp').keyword('巨乳').execute
# 取得件数、オフセット、ソート条件の指定
result = client.request.hits(100).offset(:date).execute
## 検索結果の取得
# 取得できる情報はDMM Web Service 2.0仕様を参照してください。
# 下記は一例です。
result.result_count # => 取得件数(String)
result.total_count # => 全体件数(String)
result.first_position # => 検索開始位置(String)
result.items.item[0].service_name # => サービス名(String)
result.items.item[0].floor_name # => フロア名(String)
result.items.item[0].category_name # => カテゴリ名(String)
result.items.item[0].content_id # => 商品ID(String)
result.items.item[0].product_id # => 品番(String)
result.items.item[0].title # => タイトル(String)
result.items.item[0].URL # => 商品ページURL(String)
result.items.item[0].affiliateURL # => アフィリエイトリンクURL(String)
result.items.item[0].URLsp # => スマホ向け商品ページURL(あればString, なければnil)
result.items.item[0].affiliateURLsp # => スマホ向けアフィリエイトリンクURL(あればString, なければnil)
result.items.item[0].imageURL.list # => 画像URLリスト用(String)
result.items.item[0].imageURL.small # => 画像URL末端用(小)(String)
result.items.item[0].imageURL.large # => 画像URL末端用(大)(String)
specファイルも参照してください。
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that rdmm2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.