Nov 26, 2008
phpArmory 0.4.1 – “Call to Arms” released
Today the World of Warcraft armory has been updated to reflect the new character features introduced with Patch 3.0.2 – “Echoes of Doom” – and the Wrath of the Lich King expansion. phpArmory 0.4.1 – “Call to Arms” (named after the Battleground holidays ) is out and supports the added character achievements and statistics.
0.4.1 – “Call to Arms” – Nov 26, 2008
The World of Warcraft armory has received quite a few improvements, making it feature complete with the added character data from the “Wrath of the Lich King” expansion.
Features added
getCharacterData($characterName, $realmName) will now return an array which contains character achievements and statistics.
$character = Array ( [characterinfo] => Array ( ... ) [reputationtab] => Array ( ... ) [skilltab] => Array ( ... ) [talenttab] => Array ( ... ) [achievements] => Array ( ... ) [statistics] => Array ( ... ) [armorypatchlevel] => 030003 )
Download
Enjoy the 0.4.1 release, and either grab phparmory-0.4.1.zip or phparmory-0.4.1.tar.gz. Please note that all PHP files are formatted with Unix line endings, as I am mostly a Linux / Mac geek.
Feel free to leave a comment if you should end up having trouble with the classes.
Hi, there seams to be a problem with the US armory, I can get an array off wow-europe with getCharacterData(), but when I set the area to US I get nothing.
Can you give me an example of what your code looks like? I can not verify the issue with all US characters I have tried.
As far as I know there currently is an issue with the armory that prevents the armory from returning character data from characters with special chars in their names, but besides this everything works.
Example here.
[...] phpArmory 0.4.1 released, I am currently investigating which features to add next. Thus it is your turn. Tell me [...]
Would you be opposed to the idea of an ASP.NET port of phpArmory? I’d definitely like to be able to use what you’ve put together, but I’d rather port it to ASP and integrate that with other things I’m already working on.
I was attempting to get the phpArmory class working with the basic examples and ran into a problem with getGuildData. In the case of realms / guild names with spaces, if you perform the urlencode on them, it is unnecessary to replace the spaces with pluses.
I had this problem with my Guild Name but haven’t given it a shot yet with a realm since my realm has no spaces.
To be a bit more specific, I’m referring to lines 636 and 637 in phpArmory.class.php. Hope this helps other people!
Verified. Any Guild Name or Realm with a space is being encoded in correctly in the url. “Cenarion Circle” is being encoded as “Cenarion%2BCircle” in the final url, and should be “Cenarion+Circle”.
The “$realmName = str_replace(” “, “+”,$realmName);” is working, but the url is “%2B”.
-Dan
Great work! Same issue with US chars. Try Raenger on Undermine. Or my guild Crimson Blood Crusaders on the same realm. I used your included examples. Thanks!
Great work! I used your included examples for the following. Same issue as Ben with US chars. Try Raenger on Undermine: $areaName = ‘us’; $characterName = “Raenger”; $characterRealmName = “Undermine”; Also, having same issue with guild names with spaces, like: $areaName = ‘eu’; $guildName = “The North”; $guildRealmName = “Nagrand”;
Thanks!
sry if this is double post, WordPress timed out on me
@Jake: Go for it. AFAIK there is a Ruby gem which does the same, but no .NET class yet.
@Taylor/TB: I will try the characters and guilds you have mentioned. AFAIK the urlencode function should properly handle spaces in parameters.
wow…have not seen this even when I was looking for some php code that would do it. I started on my own. Pretty much just wanted a version of the armory that was not so slow. The only problem I have found is when I list someones equipment the enchantments on them are not shown…instead we get an permanentEnchant ID# which means nothing unless we have the data tied to that number.