Web API
The API consists of a single URL called by the Adobe Flash applet that returns the scores and ranks of the users. Additionally, it returns heights for the bars for the applet to show.
It is accessed at http://www.aimfight.com/getFight.php?name1=SCREENNAME1&name2=SCREENNAME2
By replacing SCREENNAME1
and SCREENNAME2
with the screen names of the individuals to fight, percent-encoded data is returned in the following format:
&success=1&score1=132451&score2=6004&oscore1=27241&oscore2=0&height1=99&height2=4
success
returns whether or not the fight was a valid one (0 if no, 1 if yes)score1
represents the score of the first screen name enteredscore2
represents the score of the second screen name enteredoscore1
shows the rank of the first screen name if it is in the Top 5%oscore2
shows the rank of the second screen name if it is in the Top 5%height1
is the height of the first screen name's barheight2
is the height of the second screen name's bar
Read more about this topic: AIM Fight
Famous quotes containing the word web:
“Ye whose clay-cold heads and luke-warm hearts can argue down or mask your passionstell me, what trespass is it that man should have them?... If nature has so wove her web of kindness, that some threads of love and desire are entangled with the piecemust the whole web be rent in drawing them out?”
—Laurence Sterne (17131768)