Getting started - shved270189/wot_api_ru GitHub Wiki

WotApiRu works with Rails 4.1 onwards. You can add it to your Gemfile with:

gem 'wot_api_ru', github: 'shved270189/wot_api_ru' # from GitHub
gem 'wot_api_ru' # from rubygems

Run the bundle command to install it.

After you install WotApiRu and add it to your Gemfile, you need to run the generator:

rails generate wot_api_ru:install

The generator will install an initializer. Set your application id in config/initializers/wot_api_ru.rb :

# Set your application Wargaming key here!
WotApiRu::Settings[:application_id] = ENV['WOT_API_RU_APP_ID']

After this steps you can create WotApiRu client and call to Wargaming.net Public API:

client = WotApiRu::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 WotApiRu::Client#account_list with parameters of API etc.