【Commit】GooglePlay Store データ取得API
現在制作中のGemパッケージ[store_api]のGooglePlay版が一旦フェーズ1完了ということで、最新verをrubygemsにアップしました。
概要
GooglePlay Storeからデータを収集
収集出来るデータは2015-05-19現在、下記の通り
- ランキング
- アプリ詳細
- 検索
- デベロッパーアプリ
Installation
Add this line to your application's Gemfile:
gem 'store_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install store_api
Usage
require 'store_api'
GooglePlay
- app details
apps = StoreApi::GooglePlay::Apps::Details.new('com.king.candycrushsodasaga') # Can be specified language apps = StoreApi::GooglePlay::Apps::Details.new('com.king.candycrushsodasaga','en') puts apps.title >>> Candy Crush Soda Saga
- ranking chart
# Top Grossing Android Apps ranking = StoreApi::GooglePlay::Apps::Ranking.new('topgrossing') # Top Grossing Games ranking = StoreApi::GooglePlay::Apps::Ranking.new('topgrossing','GAME') # Trending Apps trending_apps = StoreApi::GooglePlay::Apps::Ranking.new('movers_shakers')
- search apps
search_apps = StoreApi::GooglePlay::Apps::Search.new('candy crush')
- developer apps
developer_apps = StoreApi::GooglePlay::Apps::Developer.new('King')
rubygems
store_api | RubyGems.org | your community gem host