Project

wot_api_ru

0.0
No commit activity in last 3 years
No release in over 3 years
Gem for Wargaming.net Public API http://ru.wargaming.net/developers/api_reference .
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.7.0, ~> 0.7
>= 0.9.2, ~> 0.9
>= 4.2.10, ~> 4.2
>= 3.0.1, ~> 3.0
>= 1.3.9, ~> 1.3
>= 0.8.7.4, ~> 0.8

Runtime

>= 4.1.4, ~> 4.1
>= 1.7.3, ~> 1.7
 Project Readme

WotApiRu

Join the chat at https://gitter.im/shved270189/wot_api_ru Gem Version Code Climate Build Status Coverage Status Inline docs Dependency Status PullReview stats

Ruby gem for Wargaming.net Public API

Getting started

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 documentation. If you want call api.worldoftanks.ru/wot/account/list then you can use WotApiRu::Client#account_list with parameters of API etc.

License

Copyright (c) 2014 Ivan Bondarenko. See LICENSE for details.