WotApi
Ruby gem for Wargaming.net Public API
Getting started
WotApi works with Rails 4.1 onwards. You can add it to your Gemfile with:
gem 'wot_api_ru', github: 'shved270189/wot_api', :tag => 'v0.0.1'
Run the bundle command to install it.
After you install WotApi and add it to your Gemfile, you need to run the generator:
rails generate wot_api:install
The generator will install an initializer. Set your application id in config/initializers/wot_api.rb :
# Set your application Wargaming key here!
WotApi::Settings[:application_id] = ENV['WOT_API_APP_ID']
After this steps you can create WotApi client and call to Wargaming.net Public API:
client = WotApi::Client.new
client.account_list(search: 'saltovka')
All API's method you can see on API dicumentation. If you want call api.worldoftanks.ru/wot/account/list then you can use WotApi::Client#account_list with parameters of API etc.
License
Copyright (c) 2014 Ivan Bondarenko. See LICENSE for details.