Skip to content

Ruby gem for Wargaming.net Public API

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE
Notifications You must be signed in to change notification settings

shved270189/wot_api_ru

Repository files navigation

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.

About

Ruby gem for Wargaming.net Public API

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
MIT-LICENSE

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •