Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
API wrapper for World of Tanks in Ruby
Add this line to your application's Gemfile:
gem 'wot_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wot_api
Get an Application ID from Wargaming and read the available endpoints here: https://na.wargaming.net/developers/
NOTE: Other WoT geographical regions require different Application IDs
Initialize the gem with your Application ID(s):
WotApi.config({na: '123456'})
The available regions are: :na, :ru, :eu, :asia, :kr
The first region specified becomes the default if no region is specified in endpoint method arguments.
If using Rails, it is recommended to create an initializer that looks something like:
WotApi.config(YAML.load_file("#{::Rails.root}/config/wot_api.yml"))
Along with a yaml file, config/wot_api.yml:
na: 123456
ru: 6asdf6
Call endpoints like such:
WotApi.account_list(search: 'tank', region: :ru)
Which wraps the '/wot/account/list' endpoint, with 'search' params and in the :ru region
Will return an array or hash with the results, or throw an error with a message on a failure.
For endpoints that do not start with '/wot/' you can use a method like such:
WotApi.wgn_clans_list(search: 'bananas')
to use /wgn/clans/list instead of /wot/clans/list
NOTE: Version 1.2.0 removes the need for all api methods to be called with "WotApi::Base.method", instead can just use "WotApi.method" for less keystrokes. However, the existing methods are still available at WotApi::Base for compatibility.
There is an additional endpoint used to list clan member resource counts:
WotApi.clans_accounts(clan_id: "12345")
This will return an array of the clan members with their recent and total resource counts
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that wot_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.