The API looks awesome so far... However, there appears to be something missing from the documentation. Where do images come from? Suppose I call the API to get data on, for example, myself, using the following URL:
http://us.battle.net/wow/api/character/bronzebeard/romy
I get back something that looks like this:
{
"lastModified":1309907726000,
"name":"Romy",
"realm":"Bronzebeard",
"class":8,
"race":1,
"gender":1,
"level":85,
"achievementPoints":5085,
"thumbnail":"bronzebeard/37/4254245-avatar.jpg"
}
My question is, what's the rest of the path necessary to access the thumbnail? I've tried a few variations using "http://us.battle.net" but nothing works... I can't find anything in the documentation (such as it is) to indicate where these files would be located. If I look at the source HTML for my profile page here on this website, I see that graphics are coming from:
http://us.battle.net/static-render/us/
and if I use this as the prefix for the "thumbnail" value, I get a valid image. However, I'm not sure that this is the right way to do this and would like some confirmation that this is the correct server path to use.
Likewise, for items, there's an "icon" field returned. I presume this can be translated into an URL for the image, but again there's nothing I see in the documentation about it. From looking at my profile's source HTML, I see that these icons are stored at:
http://us.media.blizzard.com/wow/icons/56/
However, this seems less generic than the other server path, by virtue of the "56" folder at the end, so I'm less confident this is a universally acceptible source for the graphics. For the enchanting icon, the server path was:
http://us.media.blizzard.com/wow/icons/18/
which adds to the uncertainty.
Can the number in the server path be different from one item to another, or one profession to another? Or will all profession icons be on "18" while items are on "56" and other things are on other numbers?
What's the official line on where to access these images?
|