wot_api 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +25 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +45 -0
- data/Rakefile +28 -0
- data/lib/wot_api/base.rb +73 -0
- data/lib/wot_api/player.rb +28 -0
- data/lib/wot_api/version.rb +3 -0
- data/lib/wot_api.rb +5 -0
- data/spec/base_spec.rb +86 -0
- data/spec/fixtures/account_achievements.json +12 -0
- data/spec/fixtures/account_info.json +13 -0
- data/spec/fixtures/account_list.json +13 -0
- data/spec/fixtures/account_tanks.json +13 -0
- data/spec/fixtures/clan_battles.json +12 -0
- data/spec/fixtures/clan_info.json +13 -0
- data/spec/fixtures/clan_list.json +13 -0
- data/spec/fixtures/clan_membersinfo.json +12 -0
- data/spec/fixtures/clan_provinces.json +12 -0
- data/spec/fixtures/clan_top.json +13 -0
- data/spec/fixtures/clan_victorypointshistory.json +12 -0
- data/spec/fixtures/encyclopedia_achievements.json +13 -0
- data/spec/fixtures/encyclopedia_tankchassis.json +13 -0
- data/spec/fixtures/encyclopedia_tankengines.json +13 -0
- data/spec/fixtures/encyclopedia_tankguns.json +13 -0
- data/spec/fixtures/encyclopedia_tankinfo.json +13 -0
- data/spec/fixtures/encyclopedia_tankradios.json +13 -0
- data/spec/fixtures/encyclopedia_tanks.json +13 -0
- data/spec/fixtures/encyclopedia_tankturrets.json +13 -0
- data/spec/fixtures/endpoints.yml +61 -0
- data/spec/fixtures/globalwar_clans.json +13 -0
- data/spec/fixtures/globalwar_famepoints.json +12 -0
- data/spec/fixtures/globalwar_maps.json +12 -0
- data/spec/fixtures/globalwar_provinces.json +13 -0
- data/spec/fixtures/globalwar_top.json +13 -0
- data/spec/fixtures/globalwar_tournaments.json +12 -0
- data/spec/fixtures/ratings_accounts.json +13 -0
- data/spec/fixtures/ratings_dates.json +12 -0
- data/spec/fixtures/ratings_neighbors.json +13 -0
- data/spec/fixtures/ratings_top.json +13 -0
- data/spec/fixtures/ratings_types.json +13 -0
- data/spec/fixtures/tanks_achievements.json +13 -0
- data/spec/fixtures/tanks_stats.json +13 -0
- data/spec/player_spec.rb +32 -0
- data/spec/spec_helper.rb +21 -0
- data/wot_api.gemspec +30 -0
- metadata +212 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e0909caedc0a048860390e94624ac37f4c9af8c2
|
4
|
+
data.tar.gz: 8a75cb0165ee35d8c9db6de2c8a04cadd5a76ad5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4fe70ddf3fa23be6410327910a1fabdc23577ed4273d0d961d5ebbf6cedf65b232e3bd6336ec05e1e79c617b084c81083e9acd169726bf307a07c1fc80595257
|
7
|
+
data.tar.gz: 2c3755fbc5ed330fa206babc9f7a2115878b7b8d75558d99f5e2edecce56935c542af7ae0b2c840a26665cfab41dd3b8a4c30ed72905f9212cffbc89349bcfc5
|
data/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
.rvmrc
|
7
|
+
.rspec
|
8
|
+
Gemfile.lock
|
9
|
+
InstalledFiles
|
10
|
+
_yardoc
|
11
|
+
coverage
|
12
|
+
doc/
|
13
|
+
lib/bundler/man
|
14
|
+
pkg
|
15
|
+
rdoc
|
16
|
+
spec/reports
|
17
|
+
test/tmp
|
18
|
+
test/version_tmp
|
19
|
+
tmp
|
20
|
+
*.bundle
|
21
|
+
*.so
|
22
|
+
*.o
|
23
|
+
*.a
|
24
|
+
mkmf.log
|
25
|
+
*.swp
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Jesse Cantara jcantara@gmail.com
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# WotApi
|
2
|
+
|
3
|
+
API wrapper for World of Tanks
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'wot_api'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install wot_api
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Get an Application ID from Wargaming and read the available endpoints here: https://na.wargaming.net/developers/
|
22
|
+
|
23
|
+
Initialize the gem with your Application ID:
|
24
|
+
|
25
|
+
WotApi::Base.application_id = '123456'
|
26
|
+
|
27
|
+
Call endpoints like such:
|
28
|
+
|
29
|
+
WotApi::Base.account_list(search: 'tank')
|
30
|
+
|
31
|
+
Will return an array or hash with the results, or nil on a failure.
|
32
|
+
|
33
|
+
## Future plans
|
34
|
+
|
35
|
+
Throw exceptions on failures
|
36
|
+
|
37
|
+
Add class wrappers for endpoints with convenience methods for class relationships and such.
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
1. Fork it ( https://github.com/[my-github-username]/wot_api/fork )
|
42
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
43
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
44
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
45
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
|
5
|
+
RSpec::Core::RakeTask.new('spec')
|
6
|
+
|
7
|
+
task :default => :spec
|
8
|
+
|
9
|
+
require 'yaml'
|
10
|
+
require 'wot_api'
|
11
|
+
|
12
|
+
namespace :wotapi do
|
13
|
+
|
14
|
+
task :generate_api_fixtures, :endpoint do |t, args|
|
15
|
+
endpoint = args[:endpoint] || 'all'
|
16
|
+
STDOUT.puts "Please enter application_id:"
|
17
|
+
application_id = STDIN.gets.chomp
|
18
|
+
endpoints = YAML.load_file(File.join('spec', 'fixtures', 'endpoints.yml'))
|
19
|
+
WotApi::Base::ENDPOINTS.select{|e| e == endpoint || endpoint == 'all' }.each do |path|
|
20
|
+
pathname = WotApi::Base.pathname(path)
|
21
|
+
data = endpoints[path].merge({application_id: application_id}).map{|k,v| "#{k}=#{v}"}.join('&')
|
22
|
+
execute = "curl -is --data \"#{data}\" #{WotApi::Base.base_uri}#{path} > spec/fixtures/#{pathname}.json"
|
23
|
+
STDOUT.puts execute
|
24
|
+
STDOUT.puts `#{execute}`
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/lib/wot_api/base.rb
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
require "httparty"
|
2
|
+
|
3
|
+
module WotApi
|
4
|
+
|
5
|
+
class Base
|
6
|
+
include HTTParty
|
7
|
+
base_uri 'https://api.worldoftanks.com'
|
8
|
+
|
9
|
+
ENDPOINTS = [
|
10
|
+
'/wot/account/list/',
|
11
|
+
'/wot/account/info/',
|
12
|
+
'/wot/account/tanks/',
|
13
|
+
'/wot/account/achievements/',
|
14
|
+
'/wot/clan/list/',
|
15
|
+
'/wot/clan/info/',
|
16
|
+
'/wot/clan/battles/',
|
17
|
+
'/wot/clan/top/',
|
18
|
+
'/wot/clan/provinces/',
|
19
|
+
'/wot/clan/victorypointshistory/',
|
20
|
+
'/wot/clan/membersinfo/',
|
21
|
+
'/wot/globalwar/clans/',
|
22
|
+
'/wot/globalwar/famepoints/',
|
23
|
+
'/wot/globalwar/maps/',
|
24
|
+
'/wot/globalwar/provinces/',
|
25
|
+
'/wot/globalwar/top/',
|
26
|
+
'/wot/globalwar/tournaments/',
|
27
|
+
'/wot/encyclopedia/tanks/',
|
28
|
+
'/wot/encyclopedia/tankinfo/',
|
29
|
+
'/wot/encyclopedia/tankengines/',
|
30
|
+
'/wot/encyclopedia/tankturrets/',
|
31
|
+
'/wot/encyclopedia/tankradios/',
|
32
|
+
'/wot/encyclopedia/tankchassis/',
|
33
|
+
'/wot/encyclopedia/tankguns/',
|
34
|
+
'/wot/encyclopedia/achievements/',
|
35
|
+
'/wot/ratings/types/',
|
36
|
+
'/wot/ratings/accounts/',
|
37
|
+
'/wot/ratings/neighbors/',
|
38
|
+
'/wot/ratings/top/',
|
39
|
+
'/wot/ratings/dates/',
|
40
|
+
'/wot/tanks/stats/',
|
41
|
+
'/wot/tanks/achievements/'
|
42
|
+
]
|
43
|
+
|
44
|
+
class << self
|
45
|
+
attr_reader :application_id
|
46
|
+
|
47
|
+
def application_id=(id)
|
48
|
+
@application_id = id
|
49
|
+
#self.default_params application_id: @application_id
|
50
|
+
end
|
51
|
+
|
52
|
+
def pathname(path)
|
53
|
+
path.gsub(/(\/)+$/,'').gsub('/wot/','').gsub('/', '_')
|
54
|
+
end
|
55
|
+
|
56
|
+
def merged_params(params)
|
57
|
+
params.merge({application_id: @application_id})
|
58
|
+
end
|
59
|
+
|
60
|
+
ENDPOINTS.each do |endpoint|
|
61
|
+
define_method WotApi::Base.pathname(endpoint) do |params = {}|
|
62
|
+
response = WotApi::Base.post(endpoint, body: merged_params(params))
|
63
|
+
if response && response['data']
|
64
|
+
response['data']
|
65
|
+
else
|
66
|
+
nil
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module WotApi
|
2
|
+
|
3
|
+
class Player < Base
|
4
|
+
attr_reader :nickname, :account_id
|
5
|
+
|
6
|
+
def initialize(params={})
|
7
|
+
ArgumentError.new("application_id is required") unless self.class.default_params[:application_id]
|
8
|
+
@nickname = params['nickname']
|
9
|
+
@account_id = params['account_id']
|
10
|
+
end
|
11
|
+
|
12
|
+
class << self
|
13
|
+
|
14
|
+
def find_all_by_name_like(query)
|
15
|
+
result = self.post('/wot/account/list/', body: {search: query})
|
16
|
+
data = result['data']
|
17
|
+
if data
|
18
|
+
data.map{|d| self.new(d)}
|
19
|
+
else
|
20
|
+
[]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
data/lib/wot_api.rb
ADDED
data/spec/base_spec.rb
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe WotApi::Base do
|
4
|
+
|
5
|
+
it "has the correct base_uri" do
|
6
|
+
expect(WotApi::Base.base_uri).to eq 'https://api.worldoftanks.com'
|
7
|
+
end
|
8
|
+
|
9
|
+
it "includes HTTParty" do
|
10
|
+
expect(WotApi::Base.new).to be_a_kind_of(HTTParty)
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "ENDPOINTS" do
|
14
|
+
WotApi::Base::ENDPOINTS.each do |endpoint|
|
15
|
+
describe "#{endpoint}" do
|
16
|
+
it "starts and ends with a slash" do
|
17
|
+
expect(endpoint[0]).to eq '/'
|
18
|
+
expect(endpoint[-1]).to eq '/'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
describe ".application_id=" do
|
25
|
+
it "stores value to application_id class variable" do
|
26
|
+
WotApi::Base.application_id = '12345'
|
27
|
+
expect(WotApi::Base.application_id).to eq '12345'
|
28
|
+
end
|
29
|
+
|
30
|
+
it "updates value in application_id when set multiple times" do
|
31
|
+
WotApi::Base.application_id = 'aaaaa'
|
32
|
+
expect(WotApi::Base.application_id).to eq 'aaaaa'
|
33
|
+
WotApi::Base.application_id = '54321'
|
34
|
+
expect(WotApi::Base.application_id).to eq '54321'
|
35
|
+
end
|
36
|
+
|
37
|
+
#it "sets the httparty default_params hash application_id key" do
|
38
|
+
# WotApi::Base.application_id = '22222'
|
39
|
+
# expect(WotApi::Base.default_params[:application_id]).to eq '22222'
|
40
|
+
#end
|
41
|
+
end
|
42
|
+
|
43
|
+
describe ".pathname" do
|
44
|
+
it "removes 'wot' and changes slashes to underscores" do
|
45
|
+
expect(WotApi::Base.pathname('/wot/thing/stuff')).to eq "thing_stuff"
|
46
|
+
expect(WotApi::Base.pathname('api/endpoint')).to eq "api_endpoint"
|
47
|
+
expect(WotApi::Base.pathname('/wot/blah/path/')).to eq 'blah_path'
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
describe ".merged_params" do
|
52
|
+
it "merges the params hash argument with the application_id" do
|
53
|
+
arguments = {a: 'hi', b: 'test', c: 3}
|
54
|
+
WotApi::Base.application_id = 'abc123'
|
55
|
+
expect(WotApi::Base.merged_params(arguments)).to eq arguments.merge(application_id: 'abc123')
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe "dynamic endpoint class methods" do
|
60
|
+
WotApi::Base::ENDPOINTS.each do |endpoint|
|
61
|
+
method_name = WotApi::Base.pathname(endpoint)
|
62
|
+
describe ".#{method_name}" do
|
63
|
+
it "creates a method named #{method_name}" do
|
64
|
+
expect(WotApi::Base.respond_to?(method_name.to_sym)).to eq true
|
65
|
+
end
|
66
|
+
|
67
|
+
it "posts to the endpoint #{endpoint}" do
|
68
|
+
expect(WotApi::Base).to receive(:post).exactly(1).times
|
69
|
+
WotApi::Base.send(method_name.to_sym)
|
70
|
+
end
|
71
|
+
|
72
|
+
it "accepts a hash of arguments to post to the endpoint and merges them with the application_id" do
|
73
|
+
arguments = {a: 'hi', b: 'test', c: 3}
|
74
|
+
WotApi::Base.application_id = '123456'
|
75
|
+
expect(WotApi::Base).to receive(:post).with(endpoint, body: arguments.merge(application_id: WotApi::Base.application_id)).exactly(1).times
|
76
|
+
WotApi::Base.send(method_name.to_sym, arguments)
|
77
|
+
end
|
78
|
+
|
79
|
+
it "receives a response from api with data in an Array or Hash" do
|
80
|
+
FakeWeb.register_uri(:post, "#{WotApi::Base.base_uri}#{endpoint}", :response => File.join(File.dirname(__FILE__), 'fixtures', "#{method_name}.json"))
|
81
|
+
expect(WotApi::Base.send(method_name.to_sym)).to be_a_kind_of(Array).or be_a_kind_of(Hash)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:08 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 240
|
6
|
+
Connection: keep-alive
|
7
|
+
X-Api-Version: 2.11.3
|
8
|
+
Content-Language: en
|
9
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
10
|
+
Access-Control-Allow-Origin: *
|
11
|
+
|
12
|
+
{"status":"ok","count":1,"data":{"1001407449":{"achievements":{"medalCarius":3,"invader":1,"titleSniper":1,"medalLavrinenko":4,"armorPiercer":1,"medalPoppel":4,"supporter":1,"medalKay":4,"medalAbrams":3,"medalLeClerc":3,"medalKnispel":4}}}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:07 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 2476
|
6
|
+
Connection: keep-alive
|
7
|
+
Vary: Accept-Encoding
|
8
|
+
X-Api-Version: 2.11.3
|
9
|
+
Content-Language: en
|
10
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
11
|
+
Access-Control-Allow-Origin: *
|
12
|
+
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":{"achievements":{"tank_expert_uk":0,"medal_dumitru":0,"invader":1,"medal_lehvaslaiho":0,"warrior":0,"medal_halonen":0,"medal_pascucci":0,"medal_orlik":0,"medal_brothers_in_arms":0,"mousebane":0,"tank_expert_france":0,"tank_expert_japan":0,"mechanic_engineer_ussr":0,"medal_bruno_pietro":0,"medal_delanglade":0,"lucky_devil":0,"defender":0,"armor_piercer":1,"medal_kay":4,"supporter":1,"mechanic_engineer":0,"steelwall":0,"max_sniper_series":15,"medal_knispel":4,"medal_boelter":0,"medal_ekins":0,"medal_heroes_of_rassenay":0,"medal_tamada_yoshio":0,"tank_expert_usa":0,"mechanic_engineer_germany":0,"max_piercing_series":10,"tank_expert":0,"iron_man":0,"medal_radley_walters":0,"kamikaze":0,"tank_expert_germany":0,"beasthunter":0,"sniper":0,"medal_tarczay":0,"medal_lavrinenko":4,"main_gun":0,"medal_oskin":0,"medal_burda":0,"medal_billotte":0,"huntsman":0,"hand_of_death":0,"medal_fadin":0,"medal_lafayette_pool":0,"max_killing_series":2,"tank_expert_china":0,"mechanic_engineer_usa":0,"medal_kolobanov":0,"patton_valley":0,"bombardier":0,"mechanic_engineer_france":0,"sniper2":0,"medal_abrams":3,"max_invincible_series":2,"medal_poppel":4,"medal_crucial_contribution":0,"raider":0,"max_diehard_series":5,"mechanic_engineer_uk":0,"invincible":0,"lumberjack":0,"sturdy":0,"title_sniper":1,"sinai":0,"diehard":0,"medal_carius":3,"medal_le_clerc":3,"tank_expert_ussr":0,"evileye":0,"mechanic_engineer_japan":0,"mechanic_engineer_china":0,"medal_nikolas":0,"scout":0},"statistics":{"clan":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"all":{"spotted":117,"hits":1755,"battle_avg_xp":168,"draws":6,"wins":164,"losses":147,"capture_points":734,"battles":317,"damage_dealt":53840,"hits_percents":31,"damage_received":35285,"shots":5712,"xp":53177,"frags":230,"survived_battles":107,"dropped_capture_points":156},"company":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":0,"losses":0,"capture_points":0,"battles":0,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"max_xp":772},"account_id":1001407449,"created_at":1318942098,"updated_at":1401154280,"private":null,"global_rating":2534,"last_battle_time":1384025959,"nickname":"abc","logout_at":1384025997}}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:07 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 6650
|
6
|
+
Connection: keep-alive
|
7
|
+
Vary: Accept-Encoding
|
8
|
+
X-Api-Version: 2.11.3
|
9
|
+
Content-Language: en
|
10
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
11
|
+
Access-Control-Allow-Origin: *
|
12
|
+
|
13
|
+
{"status":"ok","count":100,"data":[{"nickname":"abc","id":1001407449,"account_id":1001407449},{"nickname":"abc0","id":1008406637,"account_id":1008406637},{"nickname":"abc0001abc","id":1006760438,"account_id":1006760438},{"nickname":"abc001","id":1004003899,"account_id":1004003899},{"nickname":"abc002","id":1004017871,"account_id":1004017871},{"nickname":"Abc007","id":1000851929,"account_id":1000851929},{"nickname":"abc01","id":1001521332,"account_id":1001521332},{"nickname":"ABC0101","id":1007359255,"account_id":1007359255},{"nickname":"abc0123456789","id":1004737214,"account_id":1004737214},{"nickname":"abc01_hero","id":1005882335,"account_id":1005882335},{"nickname":"abc021011","id":1004698075,"account_id":1004698075},{"nickname":"abc0212","id":1008540658,"account_id":1008540658},{"nickname":"abc028677","id":1002888750,"account_id":1002888750},{"nickname":"abc0401222","id":1005086728,"account_id":1005086728},{"nickname":"abc0815","id":1000001452,"account_id":1000001452},{"nickname":"abc0921777","id":1000990900,"account_id":1000990900},{"nickname":"abc0925480914","id":1006923138,"account_id":1006923138},{"nickname":"abc1","id":1000774322,"account_id":1000774322},{"nickname":"abc10","id":1001055595,"account_id":1001055595},{"nickname":"abc100","id":1002883000,"account_id":1002883000},{"nickname":"abc101","id":1001423554,"account_id":1001423554},{"nickname":"abc10227","id":1002101666,"account_id":1002101666},{"nickname":"abc1046477589","id":1004707581,"account_id":1004707581},{"nickname":"abc11","id":1007227104,"account_id":1007227104},{"nickname":"abc112","id":1006480463,"account_id":1006480463},{"nickname":"abc12","id":1001739372,"account_id":1001739372},{"nickname":"abc12123","id":1002396288,"account_id":1002396288},{"nickname":"abc1212a","id":1003448735,"account_id":1003448735},{"nickname":"abc1212c","id":1003448741,"account_id":1003448741},{"nickname":"abc12132","id":1001058418,"account_id":1001058418},{"nickname":"abc122173","id":1001331892,"account_id":1001331892},{"nickname":"abc1225576485","id":1005704013,"account_id":1005704013},{"nickname":"abc123","id":1000021539,"account_id":1000021539},{"nickname":"abc1231","id":1007330932,"account_id":1007330932},{"nickname":"abc123123","id":1001759047,"account_id":1001759047},{"nickname":"abc123159","id":1001072237,"account_id":1001072237},{"nickname":"abc1233","id":1000857910,"account_id":1000857910},{"nickname":"abc123321","id":1001834078,"account_id":1001834078},{"nickname":"abc12333","id":1004352243,"account_id":1004352243},{"nickname":"abc1234","id":1000333385,"account_id":1000333385},{"nickname":"abc123411","id":1008007667,"account_id":1008007667},{"nickname":"abc123415","id":1001540102,"account_id":1001540102},{"nickname":"abc123423","id":1002283921,"account_id":1002283921},{"nickname":"abc1234321","id":1001426960,"account_id":1001426960},{"nickname":"abc12344555","id":1003047292,"account_id":1003047292},{"nickname":"abc12345","id":1000402976,"account_id":1000402976},{"nickname":"abc123456","id":1000349983,"account_id":1000349983},{"nickname":"abc1234566","id":1004398552,"account_id":1004398552},{"nickname":"abc1234567","id":1001422669,"account_id":1001422669},{"nickname":"ABC12345678","id":1006753637,"account_id":1006753637},{"nickname":"abc123456789","id":1000888288,"account_id":1000888288},{"nickname":"abc1234567890","id":1001091387,"account_id":1001091387},{"nickname":"abc1234567891010","id":1006139726,"account_id":1006139726},{"nickname":"abc123456789101112131416","id":1001002646,"account_id":1001002646},{"nickname":"abc12345678987654321","id":1006832140,"account_id":1006832140},{"nickname":"abc123456def_hero","id":1005748341,"account_id":1005748341},{"nickname":"abc123456_1","id":1005791028,"account_id":1005791028},{"nickname":"Abc123456__","id":1005974563,"account_id":1005974563},{"nickname":"abc12345abc","id":1007179317,"account_id":1007179317},{"nickname":"abc12345abc6","id":1007179505,"account_id":1007179505},{"nickname":"abc12345abc7","id":1007179526,"account_id":1007179526},{"nickname":"abc12345d","id":1003141813,"account_id":1003141813},{"nickname":"abc12345_2013","id":1005716676,"account_id":1005716676},{"nickname":"abc12345_destroyer","id":1006828186,"account_id":1006828186},{"nickname":"abc1234d","id":1003090973,"account_id":1003090973},{"nickname":"abc1237706","id":1007357565,"account_id":1007357565},{"nickname":"ABC123789","id":1002646856,"account_id":1002646856},{"nickname":"abc12389","id":1004207401,"account_id":1004207401},{"nickname":"abc123abc","id":1000629261,"account_id":1000629261},{"nickname":"abc123abc123","id":1002009935,"account_id":1002009935},{"nickname":"abc123abc300","id":1005991782,"account_id":1005991782},{"nickname":"abc123abc321","id":1001318220,"account_id":1001318220},{"nickname":"ABC123ACB","id":1002935279,"account_id":1002935279},{"nickname":"abc123aj","id":1000809383,"account_id":1000809383},{"nickname":"abc123BBUNME","id":1000796459,"account_id":1000796459},{"nickname":"abc123bds","id":1004298830,"account_id":1004298830},{"nickname":"abc123cba321","id":1005876228,"account_id":1005876228},{"nickname":"ABC123DARKNE55","id":1002588845,"account_id":1002588845},{"nickname":"abc123def","id":1007840029,"account_id":1007840029},{"nickname":"abc123def456","id":1001015965,"account_id":1001015965},{"nickname":"abc123def456ghi789","id":1001046074,"account_id":1001046074},{"nickname":"abc123def456ghi789jkl","id":1000466156,"account_id":1000466156},{"nickname":"abc123def456ghi789jkl101","id":1001045166,"account_id":1001045166},{"nickname":"abc123dorame","id":1001134078,"account_id":1001134078},{"nickname":"abc123doremi","id":1005005726,"account_id":1005005726},{"nickname":"ABC123Gaming","id":1005748565,"account_id":1005748565},{"nickname":"abc123gilmore","id":1007720110,"account_id":1007720110},{"nickname":"abc123hi","id":1001173582,"account_id":1001173582},{"nickname":"abc123kg","id":1001602606,"account_id":1001602606},{"nickname":"abc123me","id":1002838740,"account_id":1002838740},{"nickname":"abc123mj","id":1000276408,"account_id":1000276408},{"nickname":"abc123mjsong","id":1001026737,"account_id":1001026737},{"nickname":"abc123Noah","id":1004192118,"account_id":1004192118},{"nickname":"abc123nothingwor","id":1006074010,"account_id":1006074010},{"nickname":"Abc123rage","id":1002847199,"account_id":1002847199},{"nickname":"abc123rtdcddv","id":1000478345,"account_id":1000478345},{"nickname":"abc123swag","id":1007346079,"account_id":1007346079},{"nickname":"abc123tank","id":1002850754,"account_id":1002850754},{"nickname":"abc123tw","id":1005020865,"account_id":1005020865},{"nickname":"ABC123twelve","id":1000461226,"account_id":1000461226}]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:08 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 2249
|
6
|
+
Connection: keep-alive
|
7
|
+
Vary: Accept-Encoding
|
8
|
+
X-Api-Version: 2.11.3
|
9
|
+
Content-Language: en
|
10
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
11
|
+
Access-Control-Allow-Origin: *
|
12
|
+
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":[{"statistics":{"wins":45,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":45,"losses":0,"capture_points":0,"battles":91,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":91},"mark_of_mastery":4,"tank_id":6401},{"statistics":{"wins":33,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":33,"losses":0,"capture_points":0,"battles":72,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":72},"mark_of_mastery":3,"tank_id":5121},{"statistics":{"wins":23,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":23,"losses":0,"capture_points":0,"battles":47,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":47},"mark_of_mastery":2,"tank_id":6913},{"statistics":{"wins":27,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":27,"losses":0,"capture_points":0,"battles":45,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":45},"mark_of_mastery":3,"tank_id":3329},{"statistics":{"wins":17,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":17,"losses":0,"capture_points":0,"battles":36,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":36},"mark_of_mastery":1,"tank_id":2065},{"statistics":{"wins":15,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":15,"losses":0,"capture_points":0,"battles":21,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":21},"mark_of_mastery":2,"tank_id":3089},{"statistics":{"wins":4,"all":{"spotted":0,"hits":0,"battle_avg_xp":0,"draws":0,"wins":4,"losses":0,"capture_points":0,"battles":5,"damage_dealt":0,"hits_percents":0,"damage_received":0,"shots":0,"xp":0,"frags":0,"survived_battles":0,"dropped_capture_points":0},"battles":5},"mark_of_mastery":0,"tank_id":545}]}}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:10 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 50
|
6
|
+
Connection: keep-alive
|
7
|
+
X-Api-Version: 2.11.3
|
8
|
+
Content-Language: en
|
9
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
10
|
+
Access-Control-Allow-Origin: *
|
11
|
+
|
12
|
+
{"status":"ok","count":1,"data":{"1000008881":[]}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:09 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 2240
|
6
|
+
Connection: keep-alive
|
7
|
+
Vary: Accept-Encoding
|
8
|
+
X-Api-Version: 2.11.3
|
9
|
+
Content-Language: en
|
10
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
11
|
+
Access-Control-Allow-Origin: *
|
12
|
+
|
13
|
+
{"status":"ok","count":1,"data":{"1000008881":{"members_count":7,"name":"Allied Brotherhood Clan","description_html":"<p>We are old and young. We are men and women. We are new players and good players. We are from many countries and talk many languages. We are here to have fun and have a good time.\n<\/p>","color":"#B09CA1","created_at":1365732959,"request_availability":false,"updated_at":1393639687,"private":null,"abbreviation":"ABC","emblems":{"large":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_64x64.png","small":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_24x24.png","bw_tank":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_64x64_tank.png","medium":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_32x32.png"},"clan_id":1000008881,"clan_color":"#B09CA1","members":{"1003586626":{"account_id":1003586626,"created_at":1365973238,"updated_at":0,"account_name":"abcdogface","role":"diplomat","role_i18n":"Diplomat"},"1003057708":{"account_id":1003057708,"created_at":1365733431,"updated_at":0,"account_name":"SunshineZ","role":"private","role_i18n":"Soldier"},"1007891500":{"account_id":1007891500,"created_at":1393411070,"updated_at":0,"account_name":"Petbark","role":"diplomat","role_i18n":"Diplomat"},"1003584109":{"account_id":1003584109,"created_at":1365732959,"updated_at":0,"account_name":"hetep","role":"leader","role_i18n":"Commander"},"1003961549":{"account_id":1003961549,"created_at":1393455767,"updated_at":0,"account_name":"RageUrFace","role":"recruit","role_i18n":"Recruit"},"1003054743":{"account_id":1003054743,"created_at":1365733330,"updated_at":0,"account_name":"Buffalojack","role":"diplomat","role_i18n":"Diplomat"},"1003805919":{"account_id":1003805919,"created_at":1365807873,"updated_at":0,"account_name":"sirwills","role":"vice_leader","role_i18n":"Deputy Commander"}},"is_clan_disbanded":false,"motto":"Pro Libertate","owner_id":1003584109,"victory_points":0,"description":"We are old and young. We are men and women. We are new players and good players. We are from many countries and talk many languages. We are here to have fun and have a good time."}}}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:09 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 670
|
6
|
+
Connection: keep-alive
|
7
|
+
Vary: Accept-Encoding
|
8
|
+
X-Api-Version: 2.11.3
|
9
|
+
Content-Language: en
|
10
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
11
|
+
Access-Control-Allow-Origin: *
|
12
|
+
|
13
|
+
{"status":"ok","count":1,"data":[{"owner_name":"hetep","members_count":7,"name":"Allied Brotherhood Clan","color":"#B09CA1","created_at":1365732959,"abbreviation":"ABC","emblems":{"large":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_64x64.png","small":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_24x24.png","bw_tank":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_64x64_tank.png","medium":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_32x32.png"},"clan_id":1000008881,"motto":"Pro Libertate","owner_id":1003584109}]}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:17 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 52
|
6
|
+
Connection: keep-alive
|
7
|
+
X-Api-Version: 2.11.3
|
8
|
+
Content-Language: en
|
9
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
10
|
+
Access-Control-Allow-Origin: *
|
11
|
+
|
12
|
+
{"status":"ok","count":1,"data":{"1001407449":null}}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx
|
3
|
+
Date: Thu, 29 May 2014 02:16:16 GMT
|
4
|
+
Content-Type: application/json; charset=utf-8
|
5
|
+
Content-Length: 35
|
6
|
+
Connection: keep-alive
|
7
|
+
X-Api-Version: 2.11.3
|
8
|
+
Content-Language: en
|
9
|
+
Access-Control-Request-Method: GET, POST, HEAD
|
10
|
+
Access-Control-Allow-Origin: *
|
11
|
+
|
12
|
+
{"status":"ok","count":0,"data":{}}
|