Topic Character/Guild Activity Feeds
Qok
Zangarmarsh
Qok
85 Goblin Hunter
8415
It seems as if there is much interest to return this functionality. The data does not require authentication so it seems a nice fit for the api.

We miss it. Can we bribe the dev team into working on this one? We will send you cakes and cookies. Please?

Straton
Straton
Web & Mobile Team
It seems as if there is much interest to return this functionality. The data does not require authentication so it seems a nice fit for the api.

We miss it. Can we bribe the dev team into working on this one? We will send you cakes and cookies. Please?


We can't tell you that we accept bribe. We can only tell you that we really like hot cookies and cold frosty beverages.
Shrakzyn
Llane
Shrakzyn
85 Orc Death Knight
6735
01/18/2012 09:00 AMPosted by Straton
We can only tell you that we really like hot cookies and cold frosty beverages.

I would slaughter a thousand gnomes to have those delivered to me right now :) ...
Rhileu
Zangarmarsh
Rhileu
3 Night Elf Druid
0
*places a plate of steaming macadamia nut cookies on the table*

*hands out a round of ice-cold milk*

*sits down at the table*

*leans back*

*folds arms before her*

*gives the Web & Mobile Team a long stern look*

So... now tell me, how's buisness these days?
Julshan
Dragonblight
Julshan
1 Blood Elf Priest
0
01/18/2012 09:00 AMPosted by Straton
We can't tell you that we accept bribe. We can only tell you that we really like hot cookies and cold frosty beverages.


You sir are the definition of awesomeness.
Oxoxoxoxen
Sargeras
Oxoxoxoxen
85 Human Paladin
8430
01/18/2012 09:00 AMPosted by Straton
We can't tell you that we accept bribe. We can only tell you that we really like hot cookies and cold frosty beverages.


* Shows up with Buddy from Cake Boss to bake fresh cookies on site.

* Waves in multiple beer delivery trucks, as well as trucks from Coke, Pepsi and a local dairy.

* Has a busload of swimsuit models to hand out refreshments.

So guys, what say we get the old Armory guild bank logs working again?
Garopp
Galakrond
Garopp
10 Tauren Hunter
20
Edited by Garopp on 2/6/12 3:06 AM (PST)
Order Summary: Hot cookies and cold frosty beverages.
Delivery Details

Straton
Blizzard Entertainment
P.O. Box 18979
Irvine, CA 92623

Order #: 203-564685167-1321896
Delivery Method: Goblin Express
Items: 5672 gold
Postage & Packing: 22 gold
------
Total before goblin cut: 5600 gold
Goblin cut: 72 gold
------

Dispatch estimate for these items: 10 FEB 2012

200 "Hot Cookie" In stock

Sold by: Fizzlewinks electro-bakery

200 "Cold frosty beverage" In stock but may require up to 2 additional days to deliver, arrival from Booty Bay.

Sold by: Innkeeper Skindle (Booty Bay)



Let me know if you need any more :) Really looking forward to some sort of character feed and have lots of ideas for its use! I promise your long hours spent toiling away will not be in vain.
Cordana
Malfurion
Cordana
85 Blood Elf Warlock
7420
Edited by Cordana on 4/16/12 2:54 AM (PDT)
Wanna bump this... putting together our guild site and this is really the only thing the site needs. I already have everything pulling into and updating a database hourly (loading data 24 times a day as opposed to potentially hundreds of times a day with each page refresh) and would rather not put the work into harvesting pages. I was honestly stunned to find no RSS feeds by default. I really thought there'd be both, but the RSS feed OR the API at a bare minimum.
Shauni
Mannoroth
Shauni
85 Night Elf Druid
Zen
7040
I am trying to get recent achievements and loot for my site as well. I'm trying to use the API to just to get the 5 largest time stamps for each, get the ID's that correspond to the time stamps and compare them to the full list of achievements and obtain that ID and title. From there it should be easy, but the full achievement json file is super nested and is hard to traverse making say something like this: foreach($Achievements[id] as $idNum) difficult. If anyone has found an easier way of doing this i would be interested to hear from you.
Cyaga
Nazjatar
Cyaga
MVP
85 Tauren Druid
4610
04/20/2012 11:22 AMPosted by Shãuni
If anyone has found an easier way of doing this i would be interested to hear from you.


I don't know what language you're using, but here's a snippet of Ruby I used for a toy app of mine. It results in an array of hashes each with an ID and a name; the full finalized data structure can be seen at http://achieveit.heroku.com/ach

def parse_achievements(ach)
final = []
ach.each do |value|
if value.has_key?("achievements") || value.has_key?("categories")
if value.has_key?("achievements")
final.push(parse_achievements(value["achievements"]))
end
if value.has_key?("categories")
final.push(parse_achievements(value["categories"]))
end
else
final.push({'id' => value["id"], 'name' => value["title"]})
end
end
final.flatten
end


The full source for the main file is at https://gist.github.com/2432197.

Please note I made this app in a couple hours and haven't looked at, according to the Git log, since November--so I make no guarantees that it still works at all. :)
________________________________________________
MVP, Web and API
Libraries for the Community Platform API: http://us.battle.net/wow/en/forum/topic/2369882588
Kieble
Eredar
Kieble
85 Night Elf Druid
5980
Cyaga, does that do any way of pairing up with who got the achievement?

ex: Kieble hits lvl 85.

Also from the looks it doesn't cover items right? I'm trying to make a hacked together one too in php, but just trying to figure out what has been done and the paths people have taken.

For the achievement it's basically guild-> get latest achievements -> pair id with the id of achievement pretty much?
Cyaga
Nazjatar
Cyaga
MVP
85 Tauren Druid
4610
04/20/2012 05:11 PMPosted by Kieble
Cyaga, does that do any way of pairing up with who got the achievement?


No, it doesn't--it's simply a flattened view of the data at http://us.battle.net/api/wow/data/character/achievements (while only keeping the ID and achievement name around).

At https://gist.github.com/2433774 you can find another script I threw together to build a giant flattened hash of all the achievements, keyed by their IDs; it also keeps track of which category/subcategory the achievement is in. There is some example output in case you don't have Ruby on your machine.

Once the data is flattened like this, it's easy to look up an achievement by its ID or search through the array for other criteria.

As for matching up earned achievements, I think you're on the right track. The JSON response for a character with achievements included returns six arrays: achievementsCompleted, achievementsCompletedTimestamp, criteria, criteriaQuantity, criteriaTimestamp, and criteriaCreated. The first two arrays have the same length, as do the last four.

If, say, you wanted to see the character's most recent achievement, you could find the largest timestamp in the achievementsCompletedTimestamp array and store its position in that array. Find the element in the same index in the achievementsCompleted array, and that is the ID of the achievement that was completed. Finally, use that ID to find the achievement data (which is where the flattened view of achievement data is useful) and you have what you're looking for.
________________________________________________
MVP, Web and API
Libraries for the Community Platform API: http://us.battle.net/wow/en/forum/topic/2369882588
Shauni
Mannoroth
Shauni
85 Night Elf Druid
Zen
7040
Edited by Shãuni on 4/22/12 10:11 PM (PDT)

I don't know what language you're using, but here's a snippet of Ruby I used for a toy app of mine. It results in an array of hashes each with an ID and a name; the full finalized data structure can be seen at http://achieveit.heroku.com/ach


I am using PHP and I am close to where you are but I am having issues where it is not adding one or two of the arrays 'achievements' or 'categories' like its getting some but not all, so some data is not being returned. I am checking the most recent ID's earned by the character to those arrays as I run past them. Basically stepping through the first main array and if it finds the ones named 'achievements' or 'categories' it sends them to a function that compares the ID's the player earned within THOSE in the arrays sent and returns an array of the top five ID's along with its corresponding time stamp and Title. I did not think it would be this hard when i started and I am nearly finished aside from finding the missing arrays, but i do like your recursion. Going to see if PHP has some similar functions i can use.

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Click here to view the Forums Code of Conduct.

Report Post # written by
Reason
Explain (256 characters max)

Reported!

[Close]