Wowarmory.com API Reference

I am developing a simple application that extracts some data from wowarmory.com. I need to make a reputation pick for a character. I know where the api is:

http://www.wowarmory.com/character-reputation.xml?r=Realm&cn=CharacterName

I can get the XML and load it into a SimpleXML object, but it's hard for me to figure out how to get the current and maximum reputation for each fraction from XML. Here is an example XML:

<faction id="69" key="darnassus" name="Darnassus" reputation="35023"/>
<faction id="930" key="exodar" name="Exodar" reputation="26805"/>
<faction id="54" key="gnomereganexiles" name="Gnomeregan Exiles" reputation="23433"/>
<faction id="47" key="ironforge" name="Ironforge" reputation="29410"/>

There is only the attribute "reputation" for each fraction. How can I calculate the maximum and current reputation? It looks like there are no attributes.

Can someone point me in the right direction?

+5
source share
2 answers

I think I can answer this question, since I myself WoW.

Wow rep - -42 000 42 000.

, .

Rep Name    Range            Range Value
----------------------------------------
Hated      -42,000 - -6,001       36,000
Hostile     -6,000 - -3,001        3,000
Unfriendly  -3,000 -     -1        3,000
Neutral          0 -  2,999        3,000
Friendly     3,000 -  8,999        6,000
Honored      9,000 - 20,999       12,000
Revered     21,000 - 41,999       21,000
Exalted     42,000+                    ~

, - 35 023 Revered - 14 024/21 000.

API , , .

+16

42999 . -42000 .

<faction id="730" key="stormpikeguard" name="Stormpike Guard" reputation="42999"/>
<faction id="21" key="bootybay" name="Booty Bay" reputation="-42000"/>

. . http://www.wowwiki.com/Reputation , .

+1

All Articles