Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding new API's for character feed, guild neww, achievements and ite…

…m sets
  • Loading branch information...
commit 68d3f793d283a1c1d97b37397ee44b8d9c50a0ad 1 parent 468e849
Christopher Giroir kelsin authored
28 achievement.json
View
@@ -0,0 +1,28 @@
+{
+ "id":2144,
+ "title":"What A Long, Strange Trip It's Been",
+ "points":50,
+ "description":"Complete the world events achievements listed below.",
+ "reward":"Rewards: Violet Proto-Drake and Master Riding",
+ "rewardItems":[
+ {
+ "id":44177,
+ "name":"Reins of the Violet Proto-Drake",
+ "icon":"ability_mount_drake_proto",
+ "quality":4,
+ "tooltipParams":{}
+ }
+ ],
+ "icon":"achievement_bg_masterofallbgs",
+ "criteria":[
+ {
+ "id":7553,
+ "description":"To Honor One's Elders"
+ },
+ {
+ "id":7554,
+ "description":"Fool For Love"
+ },
+ ...
+ ]
+}
88 character-feed.json
View
@@ -0,0 +1,88 @@
+{
+ "feed":[
+ {
+ "type":"LOOT",
+ "timestamp":1335410775000,
+ "itemId":77022
+ },
+ {
+ "type":"ACHIEVEMENT",
+ "timestamp":1335409252000,
+ "achievement":
+ {
+ "id":5311,
+ "title":"Elementary",
+ "points":10,
+ "description":"Defeat the Elementium Monstrosity in the Bastion of Twilight while only allowing it to create a single Liquid Ice patch.",
+ "rewardItems":[],
+ "icon":"achievement_dungeon_bastionoftwilight_twilightascendantcouncil",
+ "criteria":[
+ {
+ "id":15471,
+ "description":"Elementium Monstrosity"
+ }
+ ]
+ },
+ "featOfStrength":false
+ }
+ {
+ "type":"CRITERIA",
+ "timestamp":1334115489000,
+ "achievement":
+ {
+ "id":3016,
+ "title":"In His House He Waits Dreaming (25 player)",
+ "points":10,
+ "description":"Experience all 3 visions of Yogg-Saron's mind in 25-player mode.",
+ "rewardItems":[],
+ "icon":"spell_shadow_brainwash",
+ "criteria":[
+ {
+ "id":10321,
+ "description":"The Assassination of King Llane"
+ },
+ {
+ "id":10322,
+ "description":"The Forging of the Demon Soul"
+ },
+ {
+ "id":10323,
+ "description":"The Tortured Champion"
+ }
+ ]
+ },
+ "featOfStrength":false,
+ "criteria":
+ {
+ "id":10322,
+ "description":"The Forging of the Demon Soul"
+ }
+ },
+ {
+ "type":"BOSSKILL",
+ "timestamp":1334115040000,
+ "achievement":
+ {
+ "id":2880,
+ "title":"General Vezax kills (Ulduar 25 player)",
+ "points":10,"description":
+ "General Vezax kills (Ulduar 25 player)",
+ "rewardItems":[],
+ "icon":"inv_misc_head_dragon_blue",
+ "criteria":[
+ {
+ "id":9964,"description":"General Vezax"
+ }
+ ]
+ },
+ "featOfStrength":false,
+ "criteria":
+ {
+ "id":9964,
+ "description":"General Vezax"
+ },
+ "quantity":9,
+ "name":"General Vezax"
+ }
+ }
+}
103 docbook.xml
View
@@ -455,6 +455,32 @@ Host: us.battle.net
<title>API Reference</title>
<section>
+ <title>Achievement Resources</title>
+
+ <para>Achievement APIs provide some simple data about achievements.</para>
+
+ <section>
+ <title>Achievement</title>
+
+ <programlisting>URL = Host + "/api/wow/achievement/" + AchievementID</programlisting>
+
+ <para>There are no required query string parameters when accessing
+ this resource.</para>
+
+ <example>
+ <title>An example achievement call</title>
+
+ <programlisting>GET /api/wow/achievement/2144 HTTP/1.1
+Host: us.battle.net
+&lt;http headers&gt;</programlisting>
+
+ <programlisting language="json"><xi:include
+ href="achievement.json" parse="text" /></programlisting>
+ </example>
+ </section>
+ </section>
+
+ <section>
<title>Character Resources</title>
<para>Character APIs currently provide character profile
@@ -526,6 +552,13 @@ Host: us.battle.net</programlisting>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>feed</term>
+ <listitem>
+ <para>The activity feed of the character.</para>
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term>talents</term>
@@ -713,6 +746,17 @@ Host: us.battle.net</programlisting>
</section>
<section>
+ <title>feed</title>
+
+ <example>
+ <title>An example feed field</title>
+
+ <programlisting language="json"><xi:include
+ href="character-feed.json" parse="text" /></programlisting>
+ </example>
+ </section>
+
+ <section>
<title>talents</title>
<example>
@@ -1012,6 +1056,14 @@ Host: us.battle.net</programlisting>
earned by the guild.</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term>news</term>
+
+ <listitem>
+ <para>A set of data structures that describe the news feed of the guild.</para>
+ </listitem>
+ </varlistentry>
</variablelist>
<example>
@@ -1112,6 +1164,21 @@ Host: us.battle.net</programlisting>
parse="text" /></programlisting>
</example>
</section>
+
+ <section>
+ <title>news</title>
+
+ <para>When the members list is requested, a list of character
+ objects is returned. Each object in the returned members list
+ contains a character block as well as a rank field.</para>
+
+ <example>
+ <title>An example news block</title>
+
+ <programlisting language="json"><xi:include
+ href="guild-news.json" parse="text" /></programlisting>
+ </example>
+ </section>
</section>
</section>
</section>
@@ -1331,7 +1398,7 @@ Host: us.battle.net
<section>
<title>Item API</title>
- <para>The item API provides detailed item information.</para>
+ <para>The item API provides detailed item information. This includes item set information if this item is part of a set.</para>
<programlisting>URL = Host + "/api/wow/item/" + ItemId</programlisting>
@@ -1390,6 +1457,40 @@ Host: us.battle.net
}</programlisting>
</example>
</section>
+
+ <section>
+ <title>Item Set API</title>
+
+ <para>The item set API provides detailed item set information.</para>
+
+ <programlisting>URL = Host + "/api/wow/item/set/" + SetId</programlisting>
+
+ <example>
+ <title>An example Item Set API request and response</title>
+
+ <programlisting>GET /api/wow/item/set/1060 HTTP/1.1
+Host: us.battle.net
+&lt;http headers&gt;</programlisting>
+
+ <programlisting>HTTP/1.1 200 OK
+&lt;http headers&gt;
+
+{
+ "id":1060,
+ "name":"Deep Earth Vestments",
+ "setBonuses":[
+ {
+ "description":"After using Innervate, the mana cost of your healing spells is reduced by 25% for 15 sec.",
+ "threshold":2
+ },
+ {
+ "description":"Your Rejuvenation and Regrowth spells have a 10% chance to Timeslip and have double the normal duration.",
+ "threshold":4
+ }
+ ]
+}</programlisting>
+ </example>
+ </section>
</section>
<section>
118 guild-news.json
View
@@ -0,0 +1,118 @@
+{
+ "news":[
+ {
+ "type":"guildCreated",
+ "timestamp":1335394380000
+ },
+ {
+ "type":"itemLoot",
+ "character":"David",
+ "timestamp":1335737040000,
+ "itemId":72833
+ },
+ {
+ "type":"itemPurchase",
+ "character":"Kim",
+ "timestamp":1335733380000,
+ "itemId":71283
+ },
+ {
+ "type":"guildLevel",
+ "timestamp":1335394380000,
+ "levelUp":20
+ },
+ {
+ "type":"guildAchievement",
+ "character":"Dustin",
+ "timestamp":1335394380000,
+ "achievement":
+ {
+ "id":4945,
+ "title":"Guild Level 15",
+ "points":10,
+ "description":"Reach guild level 15.",
+ "reward":"Reward: Wrap of Unity",
+ "rewardItems":[
+ {
+ "id":63206,
+ "name":"Wrap of Unity",
+ "icon":"inv_guild_cloak_alliance_b",
+ "quality":3,
+ "tooltipParams":{}
+ },
+ {
+ "id":63207,
+ "name":"Wrap of Unity",
+ "icon":"inv_guild_cloak_horde_b",
+ "quality":3,
+ "tooltipParams":{}
+ }
+ ],
+ "icon":"achievement_guild_level15",
+ "criteria":[
+ {
+ "id":13876,
+ "description":"Reach guild level 15."
+ }
+ ]
+ }
+ },
+ {
+ "type":"playerAchievement",
+ "character":"Mike",
+ "timestamp":1335763860000,
+ "achievement":
+ {
+ "id":2144,
+ "title":"What A Long, Strange Trip It's Been",
+ "points":50,
+ "description":"Complete the world events achievements listed below.",
+ "reward":"Rewards: Violet Proto-Drake and Master Riding",
+ "rewardItems":[
+ {
+ "id":44177,
+ "name":"Reins of the Violet Proto-Drake",
+ "icon":"ability_mount_drake_proto",
+ "quality":4,
+ "tooltipParams":{}
+ }
+ ],
+ "icon":"achievement_bg_masterofallbgs",
+ "criteria":[
+ {
+ "id":7553,
+ "description":"To Honor One's Elders"
+ },
+ {
+ "id":7554,
+ "description":"Fool For Love"
+ },
+ {
+ "id":9879,
+ "description":"Noble Gardener"
+ },
+ {
+ "id":7555,
+ "description":"For The Children"
+ },
+ {
+ "id":7556,
+ "description":"The Flame Warden"
+ },
+ {
+ "id":7557,
+ "description":"Brewmaster"
+ },
+ {
+ "id":7558,
+ "description":"Hallowed Be Thy Name"
+ },
+ {
+ "id":7559,
+ "description":"Merrymaker"
+ }
+ ]
+ }
+ }
+ ]
+}
Please sign in to comment.
Something went wrong with that request. Please try again.