wot_api 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/lib/wot_api/base.rb +16 -4
- data/lib/wot_api/version.rb +1 -1
- data/spec/base_spec.rb +16 -0
- data/spec/fixtures/account_achievements.json +5 -5
- data/spec/fixtures/account_info.json +5 -5
- data/spec/fixtures/account_list.json +5 -5
- data/spec/fixtures/account_tanks.json +5 -5
- data/spec/fixtures/clan_info.json +5 -5
- data/spec/fixtures/clan_list.json +5 -5
- data/spec/fixtures/clan_membersinfo.json +3 -3
- data/spec/fixtures/clan_provinces.json +3 -3
- data/spec/fixtures/clan_top.json +5 -6
- data/spec/fixtures/clanratings_clans.json +12 -0
- data/spec/fixtures/clanratings_dates.json +12 -0
- data/spec/fixtures/clanratings_neighbors.json +12 -0
- data/spec/fixtures/clanratings_top.json +13 -0
- data/spec/fixtures/clanratings_types.json +13 -0
- data/spec/fixtures/encyclopedia_achievements.json +5 -5
- data/spec/fixtures/encyclopedia_arenas.json +13 -0
- data/spec/fixtures/encyclopedia_info.json +13 -0
- data/spec/fixtures/encyclopedia_tankchassis.json +5 -5
- data/spec/fixtures/encyclopedia_tankengines.json +5 -5
- data/spec/fixtures/encyclopedia_tankguns.json +5 -5
- data/spec/fixtures/encyclopedia_tankinfo.json +5 -5
- data/spec/fixtures/encyclopedia_tankradios.json +5 -5
- data/spec/fixtures/encyclopedia_tanks.json +5 -5
- data/spec/fixtures/encyclopedia_tankturrets.json +5 -5
- data/spec/fixtures/endpoints.yml +24 -5
- data/spec/fixtures/globalwar_alleyoffame.json +12 -0
- data/spec/fixtures/{clan_battles.json → globalwar_battles.json} +3 -3
- data/spec/fixtures/globalwar_clans.json +5 -5
- data/spec/fixtures/globalwar_famepoints.json +3 -3
- data/spec/fixtures/globalwar_famepointshistory.json +11 -0
- data/spec/fixtures/globalwar_maps.json +5 -5
- data/spec/fixtures/globalwar_provinces.json +5 -5
- data/spec/fixtures/globalwar_top.json +5 -5
- data/spec/fixtures/globalwar_tournaments.json +3 -3
- data/spec/fixtures/{clan_victorypointshistory.json → globalwar_victorypointshistory.json} +3 -3
- data/spec/fixtures/ratings_accounts.json +4 -4
- data/spec/fixtures/ratings_dates.json +4 -4
- data/spec/fixtures/ratings_neighbors.json +4 -4
- data/spec/fixtures/ratings_top.json +5 -5
- data/spec/fixtures/ratings_types.json +5 -5
- data/spec/fixtures/tanks_achievements.json +5 -5
- data/spec/fixtures/tanks_stats.json +5 -5
- metadata +24 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3687dac762b83c0bdd715518c0c8ec9db4115fe7
|
4
|
+
data.tar.gz: dc8f1d1812689cb7f8394b7fa500134dfedf2bd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cae4fb5fecb1cc2a66cc90a961a849a55b911816da130d7a9baa46093f9b65cefb1a7997bd9ce169e81e241bb2232db02086bb85988abc713ca3e61c906820e
|
7
|
+
data.tar.gz: 34875015ac1df5e62a521a3c4faaad4fd37283fd1c2e08fd1f29b3758b62036ecef2904bf1044749d7556e8909a5c6fc22f3dcfff60ba7e8f2571c20bd60a9f0
|
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Initialize the gem with your Application ID(s):
|
|
28
28
|
|
29
29
|
WotApi::Base.config({na: '123456'})
|
30
30
|
|
31
|
-
The available regions are: na, ru, eu, asia, kr
|
31
|
+
The available regions are: :na, :ru, :eu, :asia, :kr
|
32
32
|
|
33
33
|
The first region specified becomes the default if no region is specified in endpoint method arguments.
|
34
34
|
|
@@ -43,7 +43,7 @@ Along with a yaml file, config/wot_api.yml:
|
|
43
43
|
|
44
44
|
Call endpoints like such:
|
45
45
|
|
46
|
-
WotApi::Base.account_list(search: 'tank', region:
|
46
|
+
WotApi::Base.account_list(search: 'tank', region: :ru)
|
47
47
|
|
48
48
|
Will return an array or hash with the results, or throw an error with a message on a failure.
|
49
49
|
|
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ namespace :wotapi do
|
|
19
19
|
WotApi::Base::ENDPOINTS.select{|e| e == endpoint || endpoint == 'all' }.each do |path|
|
20
20
|
pathname = WotApi::Base.pathname(path)
|
21
21
|
data = endpoints[path].merge({application_id: application_id}).map{|k,v| "#{k}=#{v}"}.join('&')
|
22
|
-
execute = "curl -is --data \"#{data}\" #{WotApi::Base
|
22
|
+
execute = "curl -is --data \"#{data}\" #{WotApi::Base::REGIONS[:na]}#{path} > spec/fixtures/#{pathname}.json"
|
23
23
|
STDOUT.puts execute
|
24
24
|
STDOUT.puts `#{execute}`
|
25
25
|
end
|
data/lib/wot_api/base.rb
CHANGED
@@ -12,10 +12,8 @@ module WotApi
|
|
12
12
|
'/wot/account/achievements/',
|
13
13
|
'/wot/clan/list/',
|
14
14
|
'/wot/clan/info/',
|
15
|
-
'/wot/clan/battles/',
|
16
15
|
'/wot/clan/top/',
|
17
16
|
'/wot/clan/provinces/',
|
18
|
-
'/wot/clan/victorypointshistory/',
|
19
17
|
'/wot/clan/membersinfo/',
|
20
18
|
'/wot/globalwar/clans/',
|
21
19
|
'/wot/globalwar/famepoints/',
|
@@ -23,6 +21,9 @@ module WotApi
|
|
23
21
|
'/wot/globalwar/provinces/',
|
24
22
|
'/wot/globalwar/top/',
|
25
23
|
'/wot/globalwar/tournaments/',
|
24
|
+
'/wot/globalwar/alleyoffame/',
|
25
|
+
'/wot/globalwar/battles/',
|
26
|
+
'/wot/globalwar/victorypointshistory/',
|
26
27
|
'/wot/encyclopedia/tanks/',
|
27
28
|
'/wot/encyclopedia/tankinfo/',
|
28
29
|
'/wot/encyclopedia/tankengines/',
|
@@ -31,11 +32,18 @@ module WotApi
|
|
31
32
|
'/wot/encyclopedia/tankchassis/',
|
32
33
|
'/wot/encyclopedia/tankguns/',
|
33
34
|
'/wot/encyclopedia/achievements/',
|
35
|
+
'/wot/encyclopedia/info/',
|
36
|
+
'/wot/encyclopedia/arenas/',
|
34
37
|
'/wot/ratings/types/',
|
38
|
+
'/wot/ratings/dates/',
|
35
39
|
'/wot/ratings/accounts/',
|
36
40
|
'/wot/ratings/neighbors/',
|
37
41
|
'/wot/ratings/top/',
|
38
|
-
'/wot/
|
42
|
+
'/wot/clanratings/types/',
|
43
|
+
'/wot/clanratings/dates/',
|
44
|
+
'/wot/clanratings/clans/',
|
45
|
+
'/wot/clanratings/neighbors/',
|
46
|
+
'/wot/clanratings/top/',
|
39
47
|
'/wot/tanks/stats/',
|
40
48
|
'/wot/tanks/achievements/'
|
41
49
|
]
|
@@ -85,10 +93,14 @@ module WotApi
|
|
85
93
|
params.merge({application_id: application_id})
|
86
94
|
end
|
87
95
|
|
96
|
+
def merged_post(endpoint, params={})
|
97
|
+
WotApi::Base.post(endpoint, body: merged_params(params))
|
98
|
+
end
|
99
|
+
|
88
100
|
ENDPOINTS.each do |endpoint|
|
89
101
|
define_method WotApi::Base.pathname(endpoint) do |params = {}|
|
90
102
|
begin
|
91
|
-
response =
|
103
|
+
response = merged_post(endpoint, params)
|
92
104
|
rescue
|
93
105
|
raise
|
94
106
|
end
|
data/lib/wot_api/version.rb
CHANGED
data/spec/base_spec.rb
CHANGED
@@ -40,6 +40,22 @@ describe WotApi::Base do
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
describe ".merged_post" do
|
44
|
+
it "calls WotApi::Base.post with endpont and merged_params output" do
|
45
|
+
params1 = {random: 'hash'}
|
46
|
+
params2 = {misc: 'data'}
|
47
|
+
endpoint = '/test/endpoint/'
|
48
|
+
expect(WotApi::Base).to receive(:merged_params).with(params1).and_return(params2)
|
49
|
+
expect(WotApi::Base).to receive(:post).with(endpoint, {body: params2})
|
50
|
+
WotApi::Base.merged_post(endpoint, params1)
|
51
|
+
end
|
52
|
+
it "has default empty hash for params" do
|
53
|
+
expect(WotApi::Base).to receive(:merged_params).with({}).and_return({})
|
54
|
+
allow(WotApi::Base).to receive(:post)
|
55
|
+
WotApi::Base.merged_post('/test/nothing')
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
43
59
|
describe ".config" do
|
44
60
|
context "with a valid config" do
|
45
61
|
it "creates hash of regions with base_uri and application_id" do
|
@@ -1,12 +1,12 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:01 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 428
|
6
6
|
Connection: keep-alive
|
7
|
-
X-Api-Version: 2.
|
7
|
+
X-Api-Version: 2.15.2
|
8
8
|
Content-Language: en
|
9
|
-
Access-Control-Request-Method: GET, POST
|
9
|
+
Access-Control-Request-Method: GET, POST
|
10
10
|
Access-Control-Allow-Origin: *
|
11
11
|
|
12
|
-
{"status":"ok","count":1,"data":{"1001407449":{"achievements":{"
|
12
|
+
{"status":"ok","count":1,"data":{"1001407449":{"achievements":{"titleSniper":15,"medalCarius":3,"invader":1,"medalLavrinenko":4,"armorPiercer":10,"medalPoppel":4,"medalKnispel":4,"medalKay":4,"medalAbrams":3,"medalLeClerc":3,"supporter":1},"frags":{"beasthunter":0,"sinai":0,"pattonValley":0},"max_series":{"armorPiercer":10,"titleSniper":15,"deathTrack":0,"invincible":2,"tacticalBreakthrough":0,"diehard":5,"handOfDeath":2}}}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:25:59 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 2544
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":{"1001407449":{"achievements":
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":{"achievements":null,"client_language":"en","statistics":{"clan":{"spotted":0,"avg_damage_assisted_track":0.0,"avg_damage_blocked":0.0,"direct_hits_received":0,"explosion_hits":0,"piercings_received":0,"piercings":0,"xp":0,"survived_battles":0,"hits_percents":0,"draws":0,"battles":0,"damage_received":0,"avg_damage_assisted":0.0,"frags":0,"dropped_capture_points":0,"avg_damage_assisted_radio":0.0,"capture_points":0,"base_xp":0,"hits":0,"battle_avg_xp":0,"wins":0,"losses":0,"damage_dealt":0,"no_damage_direct_hits_received":0,"shots":0,"explosion_hits_received":0,"tanking_factor":0.0},"all":{"spotted":117,"avg_damage_assisted_track":0.0,"avg_damage_blocked":0.0,"direct_hits_received":22,"explosion_hits":0,"piercings_received":21,"piercings":49,"xp":53177,"survived_battles":107,"hits_percents":31,"draws":6,"battles":317,"damage_received":35285,"avg_damage_assisted":0.0,"frags":230,"dropped_capture_points":156,"avg_damage_assisted_radio":0.0,"capture_points":734,"base_xp":2918,"hits":1755,"battle_avg_xp":168,"wins":164,"losses":147,"damage_dealt":53840,"no_damage_direct_hits_received":1,"shots":5712,"explosion_hits_received":1,"tanking_factor":0.0},"max_xp":772,"company":{"spotted":0,"avg_damage_assisted_track":0.0,"avg_damage_blocked":0.0,"direct_hits_received":0,"explosion_hits":0,"piercings_received":0,"piercings":0,"xp":0,"survived_battles":0,"hits_percents":0,"draws":0,"battles":0,"damage_received":0,"avg_damage_assisted":0.0,"frags":0,"dropped_capture_points":0,"avg_damage_assisted_radio":0.0,"capture_points":0,"base_xp":0,"hits":0,"battle_avg_xp":0,"wins":0,"losses":0,"damage_dealt":0,"no_damage_direct_hits_received":0,"shots":0,"explosion_hits_received":0,"tanking_factor":0.0},"historical":{"spotted":0,"avg_damage_assisted_track":0.0,"avg_damage_blocked":0.0,"direct_hits_received":0,"explosion_hits":0,"piercings_received":0,"piercings":0,"xp":0,"survived_battles":0,"hits_percents":0,"draws":0,"battles":0,"damage_received":0,"avg_damage_assisted":0.0,"frags":0,"dropped_capture_points":0,"avg_damage_assisted_radio":0.0,"capture_points":0,"base_xp":0,"hits":0,"battle_avg_xp":0,"wins":0,"losses":0,"damage_dealt":0,"no_damage_direct_hits_received":0,"shots":0,"explosion_hits_received":0,"tanking_factor":0.0},"frags":null,"max_damage":817,"max_damage_vehicle":6913},"account_id":1001407449,"last_battle_time":1384025959,"clan_id":null,"created_at":1318942098,"updated_at":1416345010,"private":null,"global_rating":2534,"logout_at":1384025997,"nickname":"abc"}}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:25:58 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 6050
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":100,"data":[{"nickname":"abc","id":
|
13
|
+
{"status":"ok","count":100,"data":[{"nickname":"abc","id":null,"account_id":1001407449},{"nickname":"abc0","id":null,"account_id":1008406637},{"nickname":"abc0001abc","id":null,"account_id":1006760438},{"nickname":"abc001","id":null,"account_id":1004003899},{"nickname":"abc002","id":null,"account_id":1004017871},{"nickname":"Abc007","id":null,"account_id":1000851929},{"nickname":"abc01","id":null,"account_id":1001521332},{"nickname":"ABC0101","id":null,"account_id":1007359255},{"nickname":"abc0123456789","id":null,"account_id":1004737214},{"nickname":"abc01_hero","id":null,"account_id":1005882335},{"nickname":"abc021011","id":null,"account_id":1004698075},{"nickname":"abc0212","id":null,"account_id":1008540658},{"nickname":"abc028677","id":null,"account_id":1002888750},{"nickname":"abc0401222","id":null,"account_id":1005086728},{"nickname":"abc0815","id":null,"account_id":1000001452},{"nickname":"abc0921777","id":null,"account_id":1000990900},{"nickname":"abc0925480914","id":null,"account_id":1006923138},{"nickname":"abc1","id":null,"account_id":1000774322},{"nickname":"abc10","id":null,"account_id":1001055595},{"nickname":"abc100","id":null,"account_id":1002883000},{"nickname":"abc101","id":null,"account_id":1001423554},{"nickname":"abc10227","id":null,"account_id":1002101666},{"nickname":"abc1046477589","id":null,"account_id":1004707581},{"nickname":"abc11","id":null,"account_id":1007227104},{"nickname":"abc112","id":null,"account_id":1006480463},{"nickname":"abc12","id":null,"account_id":1001739372},{"nickname":"abc12123","id":null,"account_id":1002396288},{"nickname":"abc1212a","id":null,"account_id":1003448735},{"nickname":"abc1212c","id":null,"account_id":1003448741},{"nickname":"abc12132","id":null,"account_id":1001058418},{"nickname":"abc122173","id":null,"account_id":1001331892},{"nickname":"abc1225576485","id":null,"account_id":1005704013},{"nickname":"abc123","id":null,"account_id":1000021539},{"nickname":"abc1231","id":null,"account_id":1007330932},{"nickname":"abc123123","id":null,"account_id":1001759047},{"nickname":"abc123159","id":null,"account_id":1001072237},{"nickname":"abc1233","id":null,"account_id":1000857910},{"nickname":"abc123321","id":null,"account_id":1001834078},{"nickname":"abc12333","id":null,"account_id":1004352243},{"nickname":"abc1234","id":null,"account_id":1000333385},{"nickname":"abc123411","id":null,"account_id":1008007667},{"nickname":"abc123415","id":null,"account_id":1001540102},{"nickname":"abc123423","id":null,"account_id":1002283921},{"nickname":"abc1234321","id":null,"account_id":1001426960},{"nickname":"abc12344555","id":null,"account_id":1003047292},{"nickname":"abc12345","id":null,"account_id":1000402976},{"nickname":"abc123456","id":null,"account_id":1000349983},{"nickname":"abc1234566","id":null,"account_id":1004398552},{"nickname":"abc1234567","id":null,"account_id":1001422669},{"nickname":"ABC12345678","id":null,"account_id":1006753637},{"nickname":"abc123456789","id":null,"account_id":1000888288},{"nickname":"abc1234567890","id":null,"account_id":1001091387},{"nickname":"abc1234567891010","id":null,"account_id":1006139726},{"nickname":"abc123456789101112131416","id":null,"account_id":1001002646},{"nickname":"abc12345678987654321","id":null,"account_id":1006832140},{"nickname":"abc123456_1","id":null,"account_id":1005791028},{"nickname":"Abc123456__","id":null,"account_id":1005974563},{"nickname":"abc123456def_hero","id":null,"account_id":1005748341},{"nickname":"abc12345_2013","id":null,"account_id":1005716676},{"nickname":"abc12345_destroyer","id":null,"account_id":1006828186},{"nickname":"abc12345abc","id":null,"account_id":1007179317},{"nickname":"abc12345abc6","id":null,"account_id":1007179505},{"nickname":"abc12345abc7","id":null,"account_id":1007179526},{"nickname":"abc12345d","id":null,"account_id":1003141813},{"nickname":"abc1234d","id":null,"account_id":1003090973},{"nickname":"abc1237706","id":null,"account_id":1007357565},{"nickname":"ABC123789","id":null,"account_id":1002646856},{"nickname":"abc12389","id":null,"account_id":1004207401},{"nickname":"abc123abc","id":null,"account_id":1000629261},{"nickname":"abc123abc123","id":null,"account_id":1002009935},{"nickname":"abc123abc300","id":null,"account_id":1005991782},{"nickname":"abc123abc321","id":null,"account_id":1001318220},{"nickname":"ABC123ACB","id":null,"account_id":1002935279},{"nickname":"abc123aj","id":null,"account_id":1000809383},{"nickname":"abc123BBUNME","id":null,"account_id":1000796459},{"nickname":"abc123bds","id":null,"account_id":1004298830},{"nickname":"abc123cba321","id":null,"account_id":1005876228},{"nickname":"ABC123DARKNE55","id":null,"account_id":1002588845},{"nickname":"abc123def","id":null,"account_id":1007840029},{"nickname":"abc123def456","id":null,"account_id":1001015965},{"nickname":"abc123def456ghi789","id":null,"account_id":1001046074},{"nickname":"abc123def456ghi789jkl","id":null,"account_id":1000466156},{"nickname":"abc123def456ghi789jkl101","id":null,"account_id":1001045166},{"nickname":"abc123dorame","id":null,"account_id":1001134078},{"nickname":"abc123doremi","id":null,"account_id":1005005726},{"nickname":"ABC123Gaming","id":null,"account_id":1005748565},{"nickname":"abc123gilmore","id":null,"account_id":1007720110},{"nickname":"abc123hi","id":null,"account_id":1001173582},{"nickname":"abc123kg","id":null,"account_id":1001602606},{"nickname":"abc123me","id":null,"account_id":1002838740},{"nickname":"abc123mj","id":null,"account_id":1000276408},{"nickname":"abc123mjsong","id":null,"account_id":1001026737},{"nickname":"abc123Noah","id":null,"account_id":1004192118},{"nickname":"abc123nothingwor","id":null,"account_id":1006074010},{"nickname":"Abc123rage","id":null,"account_id":1002847199},{"nickname":"abc123rtdcddv","id":null,"account_id":1000478345},{"nickname":"abc123swag","id":null,"account_id":1007346079},{"nickname":"abc123tank","id":null,"account_id":1002850754},{"nickname":"abc123tw","id":null,"account_id":1005020865},{"nickname":"ABC123twelve","id":null,"account_id":1000461226}]}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:00 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 571
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":{"1001407449":[{"statistics":{"wins":45,"
|
13
|
+
{"status":"ok","count":1,"data":{"1001407449":[{"statistics":{"wins":45,"battles":91},"mark_of_mastery":4,"tank_id":6401},{"statistics":{"wins":33,"battles":72},"mark_of_mastery":3,"tank_id":5121},{"statistics":{"wins":23,"battles":47},"mark_of_mastery":2,"tank_id":6913},{"statistics":{"wins":27,"battles":45},"mark_of_mastery":3,"tank_id":3329},{"statistics":{"wins":17,"battles":36},"mark_of_mastery":1,"tank_id":2065},{"statistics":{"wins":15,"battles":21},"mark_of_mastery":2,"tank_id":3089},{"statistics":{"wins":4,"battles":5},"mark_of_mastery":0,"tank_id":545}]}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:02 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 1656
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":1,"data":{"1000008881":{"members_count":
|
13
|
+
{"status":"ok","count":1,"data":{"1000008881":{"request_availability":false,"members_count":3,"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,"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.","victory_points_step_delta":0,"updated_at":1408301816,"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","medium":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_32x32.png","bw_tank":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_64x64_tank.png"},"clan_id":1000008881,"victory_points":0,"members":{"1007891500":{"created_at":1393411070,"role":"diplomat","role_i18n":"Intelligence Officer","account_id":1007891500,"account_name":"Petbark"},"1003584109":{"created_at":1365732959,"role":"leader","role_i18n":"Commander","account_id":1003584109,"account_name":"hetep"},"1003961549":{"created_at":1393455767,"role":"recruit","role_i18n":"Recruit","account_id":1003961549,"account_name":"RageUrFace"}},"is_clan_disbanded":false,"motto":"Pro Libertate","map_id":null,"clan_color":"#FFFFFF","owner_id":1003584109}}}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:01 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
|
-
Content-Length:
|
5
|
+
Content-Length: 1306
|
6
6
|
Connection: keep-alive
|
7
7
|
Vary: Accept-Encoding
|
8
|
-
X-Api-Version: 2.
|
8
|
+
X-Api-Version: 2.15.2
|
9
9
|
Content-Language: en
|
10
|
-
Access-Control-Request-Method: GET, POST
|
10
|
+
Access-Control-Request-Method: GET, POST
|
11
11
|
Access-Control-Allow-Origin: *
|
12
12
|
|
13
|
-
{"status":"ok","count":
|
13
|
+
{"status":"ok","count":2,"data":[{"owner_name":"basketballjoke","members_count":5,"name":"ABC golden eagles","color":"#464745","created_at":1410469413,"abbreviation":"YOLO-","emblems":{"large":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_575\/1000017575\/emblem_64x64.png","small":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_575\/1000017575\/emblem_24x24.png","medium":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_575\/1000017575\/emblem_32x32.png","bw_tank":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_575\/1000017575\/emblem_64x64_tank.png"},"clan_id":1000017575,"motto":"dem boys","owner_id":1007222462},{"owner_name":"hetep","members_count":3,"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","medium":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_32x32.png","bw_tank":"http:\/\/clans.worldoftanks.com\/media\/clans\/emblems\/cl_881\/1000008881\/emblem_64x64_tank.png"},"clan_id":1000008881,"motto":"Pro Libertate","owner_id":1003584109}]}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:03 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
5
|
Content-Length: 52
|
6
6
|
Connection: keep-alive
|
7
|
-
X-Api-Version: 2.
|
7
|
+
X-Api-Version: 2.15.2
|
8
8
|
Content-Language: en
|
9
|
-
Access-Control-Request-Method: GET, POST
|
9
|
+
Access-Control-Request-Method: GET, POST
|
10
10
|
Access-Control-Allow-Origin: *
|
11
11
|
|
12
12
|
{"status":"ok","count":1,"data":{"1001407449":null}}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
HTTP/1.1 200 OK
|
2
2
|
Server: nginx
|
3
|
-
Date: Thu,
|
3
|
+
Date: Thu, 20 Nov 2014 21:26:03 GMT
|
4
4
|
Content-Type: application/json; charset=utf-8
|
5
5
|
Content-Length: 35
|
6
6
|
Connection: keep-alive
|
7
|
-
X-Api-Version: 2.
|
7
|
+
X-Api-Version: 2.15.2
|
8
8
|
Content-Language: en
|
9
|
-
Access-Control-Request-Method: GET, POST
|
9
|
+
Access-Control-Request-Method: GET, POST
|
10
10
|
Access-Control-Allow-Origin: *
|
11
11
|
|
12
12
|
{"status":"ok","count":0,"data":{}}
|