Example API Usage: Transmog Fashion

1 Troll Rogue
0
I put together a script that uses the WoW Community Platform APIs to find and post images of characters with transmogrified items. You can see the resulting tumblr blog here:

http://transmogfashion.tumblr.com/

There's no source code available, since the world doesn't need multiple copies of this running, and my script wasn't written for style. :) But I present this to the forum just as an example idea, to get you thinking of other things you can develop using the WoW Community Platform APIs.

Here's a step-by-step of what my script does.

1) Use the realm status API to get the list of realms, and pick one realm at random.
2) Use the auction house API to pull down the chosen realm's auctions, and pick a seller at random.
3) Use the character API to find the guild that seller belongs to. (If the seller has no guild, pick another seller.)
4) Use the guild API to get the roster of that guild, and pick a level 85 member at random.
5) Use the character API to get the list of equipped items and appearance options for the chosen guild member. If the member doesn't have at least 3 transmogged and visible slots, choose another member and repeat, looking at up to 15 characters in a guild.
6) If we still haven't found a member with 3 transmogged slots, pick another seller from the AH pull and go back to step 3.
7) Now that we have a character with a bunch of transmogged slots, use the item API to get the item names of the transmog appearance sources. Build a list of visible items, with item names, IDs, quality levels, and slot names.
8) Use the character API to find the character's selected title, gender, race, class, and thumbnail URL. Replace the "thumbnail" text with "profilemain" to build the URL for the full image from the Armory.
9) Use the tumblr API to post this data with appropriate tags to the tumblr blog.

I put this script on a cron job, and it'll run once every 4 hours. The purpose is to see how people are transmogging their items, and through the use of tags, we can select examples by race or class or transmog slot.
Reply Quote
90 Night Elf Hunter
16035
This is really neat idea and a great use of the API!
Reply Quote
MVP
90 Tauren Druid
8240
Very cool! Very original idea, and well executed!

I understand your reasons for not releasing the source, but if you ever change your mind, I'm sure people could learn a lot from it. (I can definitely relate to not wanting to release... less than ideal code. :)
________________________________________________
MVP, Web and API
Libraries for the Community Platform API: http://us.battle.net/wow/en/forum/topic/2369882588
Reply Quote
90 Night Elf Priest
12995
Clever! Following you on tumblr :-p
Reply Quote
Web & Mobile Team
Very nice. Looks like it was also picked up by WoW Insider: http://wow.joystiq.com/2011/12/05/wow-api-used-to-display-player-transmogrification-sets/
Reply Quote
2 Tauren Paladin
0
This is like a new "People of Walmart".
Reply Quote
Wow nice, very creative thinking of the different calls that can be made and method for going through each one.
Get enough going and be really slick to have a select by class, race etc to filter down your results later.
Reply Quote
90 Night Elf Druid
13980
Nicely done!
Reply Quote
85 Goblin Rogue
9380
Nice job! Grats...looking forward to the website every 4 hours ;)
Reply Quote
90 Blood Elf Paladin
11425
That's a pretty neat, great job.

Have you considered making your results searchable/sortable by realm?
Reply Quote
90 Blood Elf Mage
10645
I couldn't figure out how to sumbit anything, but I guess it was just an example of what could be done. It gave me a ton of ideas, maybe I willhave to learn how to make mobile apps one day.

If someone else wants to make a mobile app or website in the mean time it would be cool to beable to look up items by source (crafting, dungeon, etc), or slot, or armor type, or color, and have the results display in thumbnail type view. i can get the list of items in wowhead but then I have to click each item to see what it looks like. If I could get that same list, displayed like their trasmog set pages is what people could find as more useful, and displayed in 3d, for the default race and gender.
Reply Quote
90 Blood Elf Mage
10645
Ujournal, if you want to test your script try it on my guild, I have 15 alts in it and all have outfits almost trasmog complete. Mine are all the good looking level 76+ females that start with thee..., ath..., or have barbie in their names.
Reply Quote
90 Blood Elf Mage
7075
Am hoping that http://transmogfashion.tumblr.com/ will include my character <3

http://us.battle.net/wow/en/character/dreadmaul/Keiga/advanced
Reply Quote

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.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]