Skip to content
splapi Client for ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
spec
.gitignore
.rspec
.travis.yml
CODE_OF_CONDUCT.md
Gemfile
LICENSE.txt
README.md
Rakefile
splapi.gemspec

README.md

SplAPI

splapi - スプラトゥーンのステージ情報がとれるやつのRuby実装のClient gem。 各APIのパラメーターは上記の公式リファレンスを参照してください。

Installation

Add this line to your application's Gemfile:

gem 'splapi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install splapi

Usage

require 'splapi'

client = SplAPI::Client.new


res = client.gachi_now
res.body
# => {"result"=>
#   [{"maps"=>["マサバ海峡大橋", "マヒマヒリゾート&スパ"],
#     "rule"=>"ガチエリア",
#     "end"=>"2016-03-04T23:00:00",
#     "start"=>"2016-03-04T19:00:00"}]}

res = client.gachi_rules
res.body['rules']
# => ["ガチエリア", "ガチホコ", "ガチヤグラ"]

res = client.weapons
res.body['weapons']
# => [".52ガロン",
#  ".52ガロンデコ",
#  ".96ガロン",
#  ".96ガロンデコ",
#  "14式竹筒銃・乙",
#  .
#  .
#  .
#  ]

# Other examples
client.gachi(date: '2015-08-31T03:00:00', to: '2015-09-03T19:00:00', rule: 'ガチヤグラ,ガチホコ', map: 'シオノメ油田,ハコフグ倉庫')
client.fes(team: 'ボケ')

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.