AIM Fight - Web API

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 entered
  • score2 represents the score of the second screen name entered
  • oscore1 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 bar
  • height2 is the height of the second screen name's bar

Read more about this topic:  AIM Fight

Famous quotes containing the word web:

    Science is a dynamic undertaking directed to lowering the degree of the empiricism involved in solving problems; or, if you prefer, science is a process of fabricating a web of interconnected concepts and conceptual schemes arising from experiments and observations and fruitful of further experiments and observations.
    James Conant (1893–1978)