battlenet 0.1.1 → 1.0.0

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.
Files changed (50) hide show
  1. data/README.md +31 -45
  2. data/VERSION +1 -0
  3. data/battlenet.gemspec +13 -2
  4. data/lib/battlenet.rb +95 -2
  5. data/lib/battlenet/authentication.rb +21 -0
  6. data/lib/battlenet/modules/arena.rb +13 -0
  7. data/lib/battlenet/modules/auction.rb +18 -0
  8. data/lib/battlenet/modules/character.rb +12 -0
  9. data/lib/battlenet/modules/data.rb +23 -0
  10. data/lib/battlenet/modules/guild.rb +12 -0
  11. data/lib/battlenet/modules/item.rb +7 -0
  12. data/lib/battlenet/modules/realm.rb +7 -0
  13. data/spec/fixtures/cassettes/arena_fun_and_profit.yml +29 -0
  14. data/spec/fixtures/cassettes/auction_data.yml +63 -0
  15. data/spec/fixtures/cassettes/auction_files.yml +30 -0
  16. data/spec/fixtures/cassettes/character_classes.yml +33 -0
  17. data/spec/fixtures/cassettes/character_mortawa.yml +30 -0
  18. data/spec/fixtures/cassettes/character_mortawa_es.yml +48 -0
  19. data/spec/fixtures/cassettes/character_mortawa_titles.yml +32 -0
  20. data/spec/fixtures/cassettes/character_nonstandard_name.yml +30 -0
  21. data/spec/fixtures/cassettes/character_races.yml +34 -0
  22. data/spec/fixtures/cassettes/guild_perks.yml +91 -0
  23. data/spec/fixtures/cassettes/guild_rewards.yml +175 -0
  24. data/spec/fixtures/cassettes/guild_rl_bl.yml +28 -0
  25. data/spec/fixtures/cassettes/guild_rl_bl_members.yml +28 -0
  26. data/spec/fixtures/cassettes/item_classes.yml +33 -0
  27. data/spec/fixtures/cassettes/item_hooooooooooo.yml +29 -0
  28. data/spec/fixtures/cassettes/realm.yml +69 -0
  29. data/spec/integration/arena_spec.rb +14 -0
  30. data/spec/integration/auction_spec.rb +22 -0
  31. data/spec/integration/character_spec.rb +29 -0
  32. data/spec/integration/data_spec.rb +41 -0
  33. data/spec/integration/guild_spec.rb +20 -0
  34. data/spec/integration/item_spec.rb +13 -0
  35. data/spec/integration/locale_spec.rb +23 -0
  36. data/spec/integration/realm_spec.rb +15 -0
  37. data/spec/spec_helper.rb +7 -0
  38. data/spec/unit/battlenet_authentication_spec.rb +31 -0
  39. data/spec/unit/battlenet_spec.rb +158 -0
  40. metadata +151 -51
  41. data/lib/battlenet/adapter/abstract_adapter.rb +0 -11
  42. data/lib/battlenet/adapter/net_http.rb +0 -14
  43. data/lib/battlenet/adapter/typhoeus.rb +0 -13
  44. data/lib/battlenet/adapter_manager.rb +0 -51
  45. data/lib/battlenet/api.rb +0 -73
  46. data/lib/battlenet/api/realm.rb +0 -14
  47. data/lib/battlenet/version.rb +0 -3
  48. data/spec/abstract_adapter_spec.rb +0 -15
  49. data/spec/adapter_manager_spec.rb +0 -55
  50. data/spec/api_spec.rb +0 -115
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/auction/data/nazjatar
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 01:01:06 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ last-modified:
20
+ - Sun, 06 Nov 2011 00:11:45 GMT
21
+ content-language:
22
+ - en-US
23
+ content-length:
24
+ - '107'
25
+ vary:
26
+ - Accept-Encoding
27
+ content-type:
28
+ - application/json;charset=utf-8
29
+ body: ! '{"files":[{"url":"http://us.battle.net/auction-data/nazjatar/auctions.json","lastModified":1320538305000}]}'
30
+ http_version: '1.1'
@@ -0,0 +1,33 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/data/character/classes
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 01:08:55 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ expires:
20
+ - Tue, 06 Dec 2011 01:08:55 GMT
21
+ cache-control:
22
+ - max-age=2592000
23
+ content-language:
24
+ - en-US
25
+ content-length:
26
+ - '569'
27
+ vary:
28
+ - Accept-Encoding
29
+ content-type:
30
+ - application/json;charset=utf-8
31
+ body: ! '{"classes":[{"id":3,"mask":4,"powerType":"focus","name":"Hunter"},{"id":4,"mask":8,"powerType":"energy","name":"Rogue"},{"id":1,"mask":1,"powerType":"rage","name":"Warrior"},{"id":2,"mask":2,"powerType":"mana","name":"Paladin"},{"id":7,"mask":64,"powerType":"mana","name":"Shaman"},{"id":8,"mask":128,"powerType":"mana","name":"Mage"},{"id":5,"mask":16,"powerType":"mana","name":"Priest"},{"id":6,"mask":32,"powerType":"runic-power","name":"Death
32
+ Knight"},{"id":11,"mask":1024,"powerType":"mana","name":"Druid"},{"id":9,"mask":256,"powerType":"mana","name":"Warlock"}]}'
33
+ http_version: '1.1'
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/character/nazjatar/mortawa
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 00:30:35 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ last-modified:
20
+ - Sat, 05 Nov 2011 05:34:29 GMT
21
+ content-language:
22
+ - en-US
23
+ content-length:
24
+ - '179'
25
+ vary:
26
+ - Accept-Encoding
27
+ content-type:
28
+ - application/json;charset=utf-8
29
+ body: ! '{"lastModified":1320471269000,"name":"Mortawa","realm":"Nazjatar","class":6,"race":6,"gender":0,"level":85,"achievementPoints":4630,"thumbnail":"nazjatar/110/44339054-avatar.jpg"}'
30
+ http_version: '1.1'
@@ -0,0 +1,48 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/character/nazjatar/mortawa?fields=talents&locale=es_ES
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 01:18:38 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ last-modified:
20
+ - Sat, 05 Nov 2011 05:34:29 GMT
21
+ content-language:
22
+ - es-MX
23
+ content-length:
24
+ - '2612'
25
+ vary:
26
+ - Accept-Encoding
27
+ content-type:
28
+ - application/json;charset=utf-8
29
+ body: ! '{"lastModified":1320471269000,"name":"Mortawa","realm":"Nazjatar","class":6,"race":6,"gender":0,"level":85,"achievementPoints":4630,"thumbnail":"nazjatar/110/44339054-avatar.jpg","talents":[{"selected":true,"name":"Sangre","icon":"spell_deathknight_bloodpresence","build":"033222001322223113013200100000000000000000200000000000000000","trees":[{"points":"03322200132222311301","total":33},{"points":"32001000000000000000","total":6},{"points":"00200000000000000000","total":2}],"glyphs":{"prime":[{"glyph":528,"item":43550,"name":"Glifo
30
+ de Golpe con runa","icon":"spell_deathknight_darkconviction"},{"glyph":558,"item":43827,"name":"Glifo
31
+ de Golpe letal","icon":"spell_deathknight_butcher2"},{"glyph":513,"item":43534,"name":"Glifo
32
+ de Golpe en el corazón","icon":"inv_weapon_shortblade_40"}],"major":[{"glyph":515,"item":43536,"name":"Glifo
33
+ de Escudo óseo","icon":"ability_deathknight_boneshield"},{"glyph":556,"item":43825,"name":"Glifo
34
+ de Transfusión de runa","icon":"spell_deathknight_runetap"},{"glyph":768,"item":45799,"name":"Glifo
35
+ de Arma de runa danzante","icon":"inv_sword_07"}],"minor":[{"glyph":522,"item":43544,"name":"Glifo
36
+ de Cuerno de invierno","icon":"inv_misc_horn_02"},{"glyph":553,"item":43672,"name":"Glifo
37
+ de Atracción pertinaz","icon":"spell_deathknight_strangulate"},{"glyph":514,"item":43535,"name":"Glifo
38
+ de Transfusión de sangre","icon":"spell_deathknight_bloodtap"}]}},{"name":"Profano","icon":"spell_deathknight_unholypresence","build":"203000000000000000000000000000000000000023322321230031021231","trees":[{"points":"20300000000000000000","total":5},{"points":"00000000000000000000","total":0},{"points":"23322321230031021231","total":36}],"glyphs":{"prime":[{"glyph":529,"item":43551,"name":"Glifo
39
+ de Golpe de la Plaga","icon":"spell_deathknight_scourgestrike"},{"glyph":771,"item":45804,"name":"Glifo
40
+ de Espiral de la muerte","icon":"spell_shadow_deathcoil"},{"glyph":527,"item":43549,"name":"Glifo
41
+ de Levantar a muerto","icon":"spell_shadow_animatedead"}],"major":[{"glyph":512,"item":43533,"name":"Glifo
42
+ de Caparazón antimagia","icon":"spell_shadow_antimagicshell"},{"glyph":530,"item":43552,"name":"Glifo
43
+ de Estrangular","icon":"spell_shadow_soulleech_3"},{"glyph":519,"item":43541,"name":"Glifo
44
+ de Atracción letal","icon":"spell_deathknight_strangulate"}],"minor":[{"glyph":553,"item":43672,"name":"Glifo
45
+ de Atracción pertinaz","icon":"spell_deathknight_strangulate"},{"glyph":555,"item":43673,"name":"Glifo
46
+ de Portón de la muerte","icon":"spell_arcane_teleportundercity"},{"glyph":522,"item":43544,"name":"Glifo
47
+ de Cuerno de invierno","icon":"inv_misc_horn_02"}]}}]}'
48
+ http_version: '1.1'
@@ -0,0 +1,32 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/character/nazjatar/mortawa?fields=titles
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 00:32:54 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ last-modified:
20
+ - Sat, 05 Nov 2011 05:34:29 GMT
21
+ content-language:
22
+ - en-US
23
+ content-length:
24
+ - '356'
25
+ vary:
26
+ - Accept-Encoding
27
+ content-type:
28
+ - application/json;charset=utf-8
29
+ body: ! '{"lastModified":1320471269000,"name":"Mortawa","realm":"Nazjatar","class":6,"race":6,"gender":0,"level":85,"achievementPoints":4630,"thumbnail":"nazjatar/110/44339054-avatar.jpg","titles":[{"id":121,"name":"Twilight
30
+ Vanquisher %s","selected":true},{"id":140,"name":"%s of the Nightfall"},{"id":143,"name":"%s
31
+ Jenkins"},{"id":150,"name":"%s of Orgrimmar"}]}'
32
+ http_version: '1.1'
@@ -0,0 +1,30 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/character/nazjatar/Hik%C3%B4
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 00:49:43 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ last-modified:
20
+ - Mon, 31 Oct 2011 17:22:40 GMT
21
+ content-language:
22
+ - en-US
23
+ content-length:
24
+ - '178'
25
+ vary:
26
+ - Accept-Encoding
27
+ content-type:
28
+ - application/json;charset=utf-8
29
+ body: ! '{"lastModified":1320081760000,"name":"Hikô","realm":"Nazjatar","class":2,"race":10,"gender":0,"level":85,"achievementPoints":5130,"thumbnail":"nazjatar/156/32983708-avatar.jpg"}'
30
+ http_version: '1.1'
@@ -0,0 +1,34 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/data/character/races
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 01:08:55 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ expires:
20
+ - Tue, 06 Dec 2011 01:08:55 GMT
21
+ cache-control:
22
+ - max-age=2592000
23
+ content-language:
24
+ - en-US
25
+ content-length:
26
+ - '638'
27
+ vary:
28
+ - Accept-Encoding
29
+ content-type:
30
+ - application/json;charset=utf-8
31
+ body: ! '{"races":[{"id":3,"mask":4,"side":"alliance","name":"Dwarf"},{"id":6,"mask":32,"side":"horde","name":"Tauren"},{"id":5,"mask":16,"side":"horde","name":"Undead"},{"id":2,"mask":2,"side":"horde","name":"Orc"},{"id":7,"mask":64,"side":"alliance","name":"Gnome"},{"id":8,"mask":128,"side":"horde","name":"Troll"},{"id":9,"mask":256,"side":"horde","name":"Goblin"},{"id":11,"mask":1024,"side":"alliance","name":"Draenei"},{"id":22,"mask":2097152,"side":"alliance","name":"Worgen"},{"id":10,"mask":512,"side":"horde","name":"Blood
32
+ Elf"},{"id":1,"mask":1,"side":"alliance","name":"Human"},{"id":4,"mask":8,"side":"alliance","name":"Night
33
+ Elf"}]}'
34
+ http_version: '1.1'
@@ -0,0 +1,91 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/data/guild/perks
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 01:08:55 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ expires:
20
+ - Tue, 06 Dec 2011 01:08:55 GMT
21
+ cache-control:
22
+ - max-age=2592000
23
+ content-language:
24
+ - en-US
25
+ content-length:
26
+ - '5584'
27
+ vary:
28
+ - Accept-Encoding
29
+ content-type:
30
+ - application/json;charset=utf-8
31
+ body: ! '{"perks":[{"guildLevel":2,"spell":{"id":78631,"name":"Fast Track","subtext":"Rank
32
+ 1","icon":"achievement_guildperk_fasttrack","description":"Experience gained
33
+ from killing monsters and completing quests increased by 5%."}},{"guildLevel":3,"spell":{"id":78633,"name":"Mount
34
+ Up","icon":"achievement_guildperk_mountup","description":"Increases speed while
35
+ mounted by 10%. Not active in Battlegrounds or Arenas."}},{"guildLevel":4,"spell":{"id":78634,"name":"Mr.
36
+ Popularity","subtext":"Rank 1","icon":"achievement_guildperk_mrpopularity","description":"Reputation
37
+ gained from killing monsters and completing quests increased by 5%."}},{"guildLevel":5,"spell":{"id":83940,"name":"Cash
38
+ Flow","subtext":"Rank 1","icon":"achievement_guildperk_cashflow","description":"Each
39
+ time you loot money from an enemy, an extra 5% money is generated and deposited
40
+ directly into your guild bank. In addition, completing guild challenges will
41
+ reward gold directly to your guild bank."}},{"guildLevel":6,"spell":{"id":78632,"name":"Fast
42
+ Track","subtext":"Rank 2","icon":"achievement_guildperk_fasttrack_rank2","description":"Experience
43
+ gained from killing monsters and completing quests increased by 10%."}},{"guildLevel":7,"spell":{"id":83942,"name":"Reinforce","subtext":"Rank
44
+ 1","icon":"achievement_guildperk_reinforce","description":"Items take 10% less
45
+ durability loss when you die."}},{"guildLevel":8,"spell":{"id":83944,"name":"Hasty
46
+ Hearth","icon":"achievement_guildperk_hastyhearth","description":"Reduces the
47
+ cooldown on your Hearthstone by 15 minutes."}},{"guildLevel":9,"spell":{"id":83943,"name":"Reinforce","subtext":"Rank
48
+ 2","icon":"achievement_guildperk_reinforce_rank2","description":"Items take
49
+ 20% less durability loss when you die."}},{"guildLevel":10,"spell":{"id":83945,"name":"Chug-A-Lug","subtext":"Rank
50
+ 1","icon":"achievement_guildperk_chugalug","description":"The duration of buffs
51
+ from all guild cauldrons is increased by 50%."}},{"guildLevel":11,"spell":{"id":83958,"name":"Mobile
52
+ Banking","icon":"achievement_guildperk_mobilebanking","description":"Summons
53
+ a Guild Chest that allows access to your guild bank for 5 min. Only guild members
54
+ with guild reputation of friendly and above are allowed to use a Guild Chest.","castTime":"3
55
+ sec cast","cooldown":"60 min cooldown"}},{"guildLevel":12,"spell":{"id":78635,"name":"Mr.
56
+ Popularity","subtext":"Rank 2","icon":"achievement_guildperk_mrpopularity_rank2","description":"Reputation
57
+ gained from killing monsters and completing quests increased by 10%."}},{"guildLevel":13,"spell":{"id":83959,"name":"Honorable
58
+ Mention","subtext":"Rank 1","icon":"achievement_guildperk_honorablemention","description":"Increases
59
+ Honor points gained by 5%."}},{"guildLevel":14,"spell":{"id":83949,"name":"Working
60
+ Overtime","icon":"achievement_guildperk_workingovertime","description":"Increases
61
+ the chance to gain a skill increase on tradeskills by 10%."}},{"guildLevel":15,"spell":{"id":83950,"name":"The
62
+ Quick and the Dead","icon":"achievement_guildperk_quickanddead","description":"Increases
63
+ health gained when resurrected by a guild member by 50% and increases movement
64
+ speed while dead by 100%. Does not function in combat or while in a Battleground
65
+ or Arena."}},{"guildLevel":16,"spell":{"id":83941,"name":"Cash Flow","subtext":"Rank
66
+ 2","icon":"achievement_guildperk_cashflow_rank2","description":"Each time you
67
+ loot money from an enemy, an extra 10% money is generated and deposited directly
68
+ into your guild bank."}},{"guildLevel":17,"spell":{"id":83951,"name":"G-Mail","icon":"achievement_guildperk_gmail","description":"In-game
69
+ mail sent between guild members now arrives instantly."}},{"guildLevel":18,"spell":{"id":83953,"name":"For
70
+ Great Justice","icon":"achievement_guildperk_everyonesahero","description":"Increases
71
+ Justice points gained by 10%."}},{"guildLevel":19,"spell":{"id":83960,"name":"Honorable
72
+ Mention","subtext":"Rank 2","icon":"achievement_guildperk_honorablemention_rank2","description":"Increases
73
+ Honor points gained by 10%."}},{"guildLevel":20,"spell":{"id":83963,"name":"Happy
74
+ Hour","icon":"achievement_guildperk_happyhour","description":"Increases the
75
+ number of flasks gained from using a flask cauldron by 50%."}},{"guildLevel":21,"spell":{"id":83967,"name":"Have
76
+ Group, Will Travel","icon":"achievement_guildperk_havegroupwilltravel","description":"Summons
77
+ all raid or party members to the caster''s current location. Cannot be used
78
+ while in combat, and can only be cast while in the outdoor world or near the
79
+ entrance of a dungeon or raid.","range":"50,000 yd range","castTime":"Channeled","cooldown":"120
80
+ min cooldown"}},{"guildLevel":22,"spell":{"id":83961,"name":"Chug-A-Lug","subtext":"Rank
81
+ 2","icon":"achievement_guildperk_chugalug_rank2","description":"The duration
82
+ of buffs from all guild cauldrons is increased by 100%."}},{"guildLevel":23,"spell":{"id":83966,"name":"Bountiful
83
+ Bags","icon":"achievement_guildperk_bountifulbags","description":"Increases
84
+ the quantity of materials gained from Mining, Skinning, Herbalism, and Disenchanting."}},{"guildLevel":24,"spell":{"id":83964,"name":"Bartering","icon":"achievement_guildperk_bartering","description":"Reduces
85
+ the price of items from all vendors by 10%."}},{"guildLevel":25,"spell":{"id":83968,"name":"Mass
86
+ Resurrection","icon":"achievement_guildperk_massresurrection","description":"Brings
87
+ all dead party and raid members back to life with 35% health and 35% mana. A
88
+ player may only be resurrected by this spell once every 10 minutes. Cannot
89
+ be cast in combat or while in a battleground or arena.","range":"100 yd range","castTime":"10
90
+ sec cast"}}]}'
91
+ http_version: '1.1'
@@ -0,0 +1,175 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://us.battle.net:80/api/wow/data/guild/rewards
6
+ body:
7
+ headers:
8
+ response: !ruby/struct:VCR::Response
9
+ status: !ruby/struct:VCR::ResponseStatus
10
+ code: 200
11
+ message: OK
12
+ headers:
13
+ date:
14
+ - Sun, 06 Nov 2011 01:08:55 GMT
15
+ server:
16
+ - Apache
17
+ x-frame-options:
18
+ - SAMEORIGIN
19
+ expires:
20
+ - Tue, 06 Dec 2011 01:08:55 GMT
21
+ cache-control:
22
+ - max-age=2592000
23
+ content-language:
24
+ - en-US
25
+ vary:
26
+ - Accept-Encoding
27
+ transfer-encoding:
28
+ - chunked
29
+ content-type:
30
+ - application/json;charset=utf-8
31
+ body: ! '{"rewards":[{"minGuildLevel":0,"minGuildRepLevel":6,"races":[6,5,2,8,9,10],"achievement":{"id":5035,"title":"Master
32
+ Crafter","points":10,"description":"Craft 500 Epic items with an item level
33
+ of at least 359.","reward":"Reward: Cloak of Coordination","rewardItem":{"id":65360,"name":"Cloak
34
+ of Coordination","icon":"inv_guild_cloak_alliance_c","quality":4,"tooltipParams":{}}},"item":{"id":65274,"name":"Cloak
35
+ of Coordination","icon":"inv_guild_cloak_horde_c","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":6,"races":[3,7,11,22,1,4],"achievement":{"id":5035,"title":"Master
36
+ Crafter","points":10,"description":"Craft 500 Epic items with an item level
37
+ of at least 359.","reward":"Reward: Cloak of Coordination","rewardItem":{"id":65360,"name":"Cloak
38
+ of Coordination","icon":"inv_guild_cloak_alliance_c","quality":4,"tooltipParams":{}}},"item":{"id":65360,"name":"Cloak
39
+ of Coordination","icon":"inv_guild_cloak_alliance_c","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":5024,"title":"Better
40
+ Leveling Through Chemistry","points":10,"description":"Create 3,000 Cataclysm
41
+ flasks.","reward":"Reward: Big Cauldron of Battle (Recipe)","rewardItem":{"id":65498,"name":"Recipe:
42
+ Big Cauldron of Battle","icon":"inv_scroll_04","quality":1,"tooltipParams":{}}},"item":{"id":65498,"name":"Recipe:
43
+ Big Cauldron of Battle","icon":"inv_scroll_04","quality":1,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":7,"races":[6,5,2,8,9,10],"achievement":{"id":5492,"title":"Guild
44
+ Level 25","points":10,"description":"Reach guild level 25.","reward":"Reward:
45
+ Reins of the Kor''kron Annihilator","rewardItem":{"id":67107,"name":"Reins of
46
+ the Kor''kron Annihilator","icon":"inv_mount_hordescorpiong","quality":4,"tooltipParams":{}}},"item":{"id":67107,"name":"Reins
47
+ of the Kor''kron Annihilator","icon":"inv_mount_hordescorpiong","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":5036,"title":"That''s
48
+ A Lot of Bait","points":10,"description":"Catch 10,000 fish from fishing pools.","reward":"Reward:
49
+ Seafood Magnifique Feast (Recipe)","rewardItem":{"id":62800,"name":"Recipe:
50
+ Seafood Magnifique Feast","icon":"inv_scroll_05","quality":3,"tooltipParams":{}}},"item":{"id":62800,"name":"Recipe:
51
+ Seafood Magnifique Feast","icon":"inv_scroll_05","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":5467,"title":"Set
52
+ the Oven to \"Cataclysmic\"","points":10,"description":"Cook 5,000 Cataclysm
53
+ cooking recipes. ","reward":"Reward: Broiled Dragon Feast (Recipe)","rewardItem":{"id":62799,"name":"Recipe:
54
+ Broiled Dragon Feast","icon":"inv_scroll_05","quality":3,"tooltipParams":{}}},"item":{"id":62799,"name":"Recipe:
55
+ Broiled Dragon Feast","icon":"inv_scroll_05","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[6,5,2,8,9,10],"achievement":{"id":4989,"title":"A
56
+ Class Act","points":10,"description":"Reach level 85 on each of the classes
57
+ listed below.","reward":"Reward: Shroud of Cooperation","rewardItem":{"id":63352,"name":"Shroud
58
+ of Cooperation","icon":"inv_guild_cloak_alliance_a","quality":2,"tooltipParams":{}}},"item":{"id":63353,"name":"Shroud
59
+ of Cooperation","icon":"inv_guild_cloak_horde_a","quality":2,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[3,7,11,22,1,4],"achievement":{"id":4989,"title":"A
60
+ Class Act","points":10,"description":"Reach level 85 on each of the classes
61
+ listed below.","reward":"Reward: Shroud of Cooperation","rewardItem":{"id":63352,"name":"Shroud
62
+ of Cooperation","icon":"inv_guild_cloak_alliance_a","quality":2,"tooltipParams":{}}},"item":{"id":63352,"name":"Shroud
63
+ of Cooperation","icon":"inv_guild_cloak_alliance_a","quality":2,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[3,7,11,22,1,4],"achievement":{"id":4945,"title":"Guild
64
+ Level 15","points":10,"description":"Reach guild level 15.","reward":"Reward:
65
+ Wrap of Unity","rewardItem":{"id":63207,"name":"Wrap of Unity","icon":"inv_guild_cloak_horde_b","quality":3,"tooltipParams":{}}},"item":{"id":63206,"name":"Wrap
66
+ of Unity","icon":"inv_guild_cloak_alliance_b","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[6,5,2,8,9,10],"achievement":{"id":4945,"title":"Guild
67
+ Level 15","points":10,"description":"Reach guild level 15.","reward":"Reward:
68
+ Wrap of Unity","rewardItem":{"id":63207,"name":"Wrap of Unity","icon":"inv_guild_cloak_horde_b","quality":3,"tooltipParams":{}}},"item":{"id":63207,"name":"Wrap
69
+ of Unity","icon":"inv_guild_cloak_horde_b","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":6,"races":[6,5,2,8,9,10],"achievement":{"id":5201,"title":"Profit
70
+ Sharing","points":10,"description":"Loot 100,000 gold from creatures.","reward":"Reward:
71
+ Guild Herald","rewardItem":{"id":65363,"name":"Guild Herald","icon":"achievement_guildperk_honorablemention_rank2","quality":3,"tooltipParams":{}}},"item":{"id":65364,"name":"Guild
72
+ Herald","icon":"achievement_guildperk_honorablemention_rank2","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[6,5,2,8,9,10],"achievement":{"id":5179,"title":"Alliance
73
+ Slayer","points":10,"description":"Complete the slayer achievements listed below.","reward":"Reward:
74
+ Guild Page","rewardItem":{"id":65362,"name":"Guild Page","icon":"achievement_guildperk_honorablemention","quality":3,"tooltipParams":{}}},"item":{"id":65362,"name":"Guild
75
+ Page","icon":"achievement_guildperk_honorablemention","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":7,"achievement":{"id":5812,"title":"United
76
+ Nations","points":0,"description":"Raise 55 reputations to Exalted.","reward":"Reward:
77
+ Dark Phoenix Hatchling","rewardItem":{"id":63138,"name":"Dark Phoenix Hatchling","icon":"inv_misc_darkphoenixpet_01","quality":3,"tooltipParams":{}}},"item":{"id":63138,"name":"Dark
78
+ Phoenix Hatchling","icon":"inv_misc_darkphoenixpet_01","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":7,"races":[3,7,11,22,1,4],"achievement":{"id":4912,"title":"Guild
79
+ Level 25","points":10,"description":"Reach guild level 25.","reward":"Reward:
80
+ Reins of the Golden King","rewardItem":{"id":62298,"name":"Reins of the Golden
81
+ King","icon":"inv_mount_allianceliong","quality":4,"tooltipParams":{}}},"item":{"id":62298,"name":"Reins
82
+ of the Golden King","icon":"inv_mount_allianceliong","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":7,"achievement":{"id":4988,"title":"Guild
83
+ Glory of the Cataclysm Raider","points":10,"description":"Complete the Cataclysm
84
+ raid achievements listed below while in a guild group.","reward":"Reward: Reins
85
+ of the Dark Phoenix","rewardItem":{"id":63125,"name":"Reins of the Dark Phoenix","icon":"inv_mount_darkphoenixa","quality":4,"tooltipParams":{}}},"item":{"id":63125,"name":"Reins
86
+ of the Dark Phoenix","icon":"inv_mount_darkphoenixa","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":5465,"title":"Mix
87
+ Master","points":10,"description":"Create 1,000 Cataclysm flasks.","reward":"Reward:
88
+ Cauldron of Battle (Recipe)","rewardItem":{"id":65435,"name":"Recipe: Cauldron
89
+ of Battle","icon":"inv_scroll_04","quality":1,"tooltipParams":{}}},"item":{"id":65435,"name":"Recipe:
90
+ Cauldron of Battle","icon":"inv_scroll_04","quality":1,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":6,"races":[3,7,11,22,1,4],"achievement":{"id":5152,"title":"Stay
91
+ Classy","points":10,"description":"Complete the classy achievements listed below.","reward":"Reward:
92
+ Guild Vault Voucher (8th Tab)","rewardItem":{"id":68136,"name":"Guild Vault
93
+ Voucher (8th Slot)","icon":"inv_misc_note_02","quality":4,"tooltipParams":{}}},"item":{"id":68136,"name":"Guild
94
+ Vault Voucher (8th Slot)","icon":"inv_misc_note_02","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":4,"achievement":{"id":4943,"title":"Guild
95
+ Level 5","points":10,"description":"Reach guild level 5.","reward":"Reward:
96
+ Guild Vault Voucher (7th Tab)","rewardItem":{"id":62286,"name":"Guild Vault
97
+ Voucher (7th Slot)","icon":"inv_misc_note_02","quality":4,"tooltipParams":{}}},"item":{"id":62286,"name":"Guild
98
+ Vault Voucher (7th Slot)","icon":"inv_misc_note_02","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
99
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
100
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":61958,"name":"Tattered
101
+ Dreadmist Mask","icon":"inv_helmet_29","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
102
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
103
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":61942,"name":"Preened
104
+ Tribal War Feathers","icon":"inv_helmet_24","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
105
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
106
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":61937,"name":"Stained
107
+ Shadowcraft Cap","icon":"inv_helmet_41","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
108
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
109
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":61936,"name":"Mystical
110
+ Coif of Elements","icon":"inv_helmet_04","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
111
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
112
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":61935,"name":"Tarnished
113
+ Raging Berserker''s Helm","icon":"inv_helmet_25","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
114
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
115
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":61931,"name":"Polished
116
+ Helm of Valor","icon":"inv_helmet_02","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4944,"title":"Guild
117
+ Level 10","points":10,"description":"Reach guild level 10.","reward":"Reward:
118
+ Heirloom Cloaks","rewardItem":{"id":69892,"name":"Ripped Sandstorm Cloak","icon":"inv_misc_cape_06","quality":7,"tooltipParams":{}}},"item":{"id":62040,"name":"Ancient
119
+ Bloodmoon Cloak","icon":"inv_misc_cape_05","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4944,"title":"Guild
120
+ Level 10","points":10,"description":"Reach guild level 10.","reward":"Reward:
121
+ Heirloom Cloaks","rewardItem":{"id":69892,"name":"Ripped Sandstorm Cloak","icon":"inv_misc_cape_06","quality":7,"tooltipParams":{}}},"item":{"id":62039,"name":"Inherited
122
+ Cape of the Black Baron","icon":"inv_misc_cape_20","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4944,"title":"Guild
123
+ Level 10","points":10,"description":"Reach guild level 10.","reward":"Reward:
124
+ Heirloom Cloaks","rewardItem":{"id":69892,"name":"Ripped Sandstorm Cloak","icon":"inv_misc_cape_06","quality":7,"tooltipParams":{}}},"item":{"id":62038,"name":"Worn
125
+ Stoneskin Gargoyle Cape","icon":"inv_misc_cape_19","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":6,"races":[3,7,11,22,1,4],"achievement":{"id":5201,"title":"Profit
126
+ Sharing","points":10,"description":"Loot 100,000 gold from creatures.","reward":"Reward:
127
+ Guild Herald","rewardItem":{"id":65363,"name":"Guild Herald","icon":"achievement_guildperk_honorablemention_rank2","quality":3,"tooltipParams":{}}},"item":{"id":65363,"name":"Guild
128
+ Herald","icon":"achievement_guildperk_honorablemention_rank2","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[3,7,11,22,1,4],"achievement":{"id":5031,"title":"Horde
129
+ Slayer","points":10,"description":"Complete the slayer achievements listed below.","reward":"Reward:
130
+ Guild Page","rewardItem":{"id":65361,"name":"Guild Page","icon":"achievement_guildperk_honorablemention","quality":3,"tooltipParams":{}}},"item":{"id":65361,"name":"Guild
131
+ Page","icon":"achievement_guildperk_honorablemention","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":6,"achievement":{"id":5144,"title":"Critter
132
+ Kill Squad","points":10,"description":"Kill 50,000 critters","reward":"Reward:
133
+ Armadillo Pup","rewardItem":{"id":63398,"name":"Armadillo Pup","icon":"inv_misc_babyarmadillopet","quality":3,"tooltipParams":{}}},"item":{"id":63398,"name":"Armadillo
134
+ Pup","icon":"inv_misc_babyarmadillopet","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[3,7,11,22,1,4],"achievement":{"id":4860,"title":"Working
135
+ as a Team","points":10,"description":"Obtain 525 skill points in all professions
136
+ and secondary professions.","reward":"Reward: Banner of Cooperation","rewardItem":{"id":64400,"name":"Banner
137
+ of Cooperation","icon":"inv_guild_standard_horde_a","quality":2,"tooltipParams":{}}},"item":{"id":63359,"name":"Banner
138
+ of Cooperation","icon":"inv_guild_standard_alliance_a","quality":2,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[3,7,11,22,1,4],"achievement":{"id":5143,"title":"Guild
139
+ Cataclysm Dungeon Hero","points":10,"description":"Complete the heroic Cataclysm
140
+ dungeon achievements listed below while in a guild group.","reward":"Reward:
141
+ Standard of Unity","rewardItem":{"id":64401,"name":"Standard of Unity","icon":"inv_guild_standard_horde_b","quality":3,"tooltipParams":{}}},"item":{"id":64398,"name":"Standard
142
+ of Unity","icon":"inv_guild_standard_alliance_b","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[3,7,11,22,1,4],"achievement":{"id":5422,"title":"A
143
+ Daily Routine","points":10,"description":"Complete 15,000 daily quests.","reward":"Reward:
144
+ Battle Standard of Coordination","rewardItem":{"id":64402,"name":"Battle Standard
145
+ of Coordination","icon":"inv_guild_standard_horde_c","quality":4,"tooltipParams":{}}},"item":{"id":64399,"name":"Battle
146
+ Standard of Coordination","icon":"inv_guild_standard_alliance_c","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[6,5,2,8,9,10],"achievement":{"id":4860,"title":"Working
147
+ as a Team","points":10,"description":"Obtain 525 skill points in all professions
148
+ and secondary professions.","reward":"Reward: Banner of Cooperation","rewardItem":{"id":64400,"name":"Banner
149
+ of Cooperation","icon":"inv_guild_standard_horde_a","quality":2,"tooltipParams":{}}},"item":{"id":64400,"name":"Banner
150
+ of Cooperation","icon":"inv_guild_standard_horde_a","quality":2,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[6,5,2,8,9,10],"achievement":{"id":5143,"title":"Guild
151
+ Cataclysm Dungeon Hero","points":10,"description":"Complete the heroic Cataclysm
152
+ dungeon achievements listed below while in a guild group.","reward":"Reward:
153
+ Standard of Unity","rewardItem":{"id":64401,"name":"Standard of Unity","icon":"inv_guild_standard_horde_b","quality":3,"tooltipParams":{}}},"item":{"id":64401,"name":"Standard
154
+ of Unity","icon":"inv_guild_standard_horde_b","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"races":[6,5,2,8,9,10],"achievement":{"id":5422,"title":"A
155
+ Daily Routine","points":10,"description":"Complete 15,000 daily quests.","reward":"Reward:
156
+ Battle Standard of Coordination","rewardItem":{"id":64402,"name":"Battle Standard
157
+ of Coordination","icon":"inv_guild_standard_horde_c","quality":4,"tooltipParams":{}}},"item":{"id":64402,"name":"Battle
158
+ Standard of Coordination","icon":"inv_guild_standard_horde_c","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":6,"races":[6,5,2,8,9,10],"achievement":{"id":5158,"title":"Stay
159
+ Classy","points":10,"description":"Complete the classy achievements listed below.","reward":"Reward:
160
+ Guild Vault Voucher (8th Tab)","rewardItem":{"id":62287,"name":"Guild Vault
161
+ Voucher (8th Slot)","icon":"inv_misc_note_02","quality":4,"tooltipParams":{}}},"item":{"id":62287,"name":"Guild
162
+ Vault Voucher (8th Slot)","icon":"inv_misc_note_02","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":4,"item":{"id":69209,"name":"Illustrious
163
+ Guild Tabard","icon":"inv_rareguildtabard","quality":3,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"item":{"id":69210,"name":"Renowned
164
+ Guild Tabard","icon":"inv_epicguildtabard","quality":4,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4944,"title":"Guild
165
+ Level 10","points":10,"description":"Reach guild level 10.","reward":"Reward:
166
+ Heirloom Cloaks","rewardItem":{"id":69892,"name":"Ripped Sandstorm Cloak","icon":"inv_misc_cape_06","quality":7,"tooltipParams":{}}},"item":{"id":69892,"name":"Ripped
167
+ Sandstorm Cloak","icon":"inv_misc_cape_06","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":5,"achievement":{"id":4946,"title":"Guild
168
+ Level 20","points":10,"description":"Reach guild level 20.","reward":"Reward:
169
+ Heirloom Helms","rewardItem":{"id":69887,"name":"Burnished Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},"item":{"id":69887,"name":"Burnished
170
+ Helm of Might","icon":"inv_helmet_09","quality":7,"tooltipParams":{}}},{"minGuildLevel":0,"minGuildRepLevel":7,"achievement":{"id":5840,"title":"Dragonwrath,
171
+ Tarecgosa''s Rest - Guild Edition","points":10,"description":"Owner of Dragonwrath,
172
+ Tarecgosa''s Rest","reward":"Reward: Dragonwrath Whelpling","rewardItem":{"id":71033,"name":"Lil''
173
+ Tarecgosa","icon":"inv_misc_petdragonwhelptarecgosa","quality":1,"tooltipParams":{}}},"item":{"id":71033,"name":"Lil''
174
+ Tarecgosa","icon":"inv_misc_petdragonwhelptarecgosa","quality":1,"tooltipParams":{}}}]}'
175
+ http_version: '1.1'