-
一个简易库:wot-api,它允许与 World of Tanks API v2.0 进行对接!
资源介绍
wot-api
一个允许与 World of Tanks API v2.0 接口的简单库!
安装
将此行添加到应用程序的 Gemfile 中:
gem 'wot-api'
然后执行:
$ bundle
或者自己安装:
$ gem install wot-api
用法
require 'wot/api'
# create a new instance of api
api = Wot :: Api . new ( "EU" )
# search players by nickname
players = api . search ( "my-nickname" )
# iterate found players and get detailed info
players . each do | player |
puts player . id
#