Page 1 of 1

API Requests

PostPosted: Sat Feb 07, 2009 7:31 am
by chipv
Add/Create APIs to prvoide the following:
  • 1. Add <first> tag to the player history xml. This indicates who went first in a game
  • 2. Create a new tournament API. Should include tags for the winner, all game numbers , and all players involved
    - format can be same as player history.
  • 3. Create a new scoreboard API. Should include ordered list including points information, country info, profile links.
  • More importantly allow both new APIs to be queried. Tournament should allow labels. Scoreboard should allow game settings if poss.

Specifics:
  • 1. Add <first> tag to the player history xml.
    Code: Select all
    <first>chipv</first>

    Information can be retrieved from game logs.
  • 2. Create a new tournament API
    Code: Select all
    <name>A-Maps</name>
    <round>1</round>
    <game>

    ... this should be same format as game history xml.

    </game>

    It would be nice to search by label also.
    This should be very little effort as it is a small deviation from the game history.

  • 3. Create a new scoreboard API.
    Code: Select all
    <player>
    <number>1</number>
    <name>King_Herpes</name>
    <score>6083</score>
    <games>2951</score>
    <won>2223</won>
    <rating>4.7</rating>
    <country>US</country>
    </player>

    Obviously this is an ordered list.
    Queries should include by country, by rank, by games won, and optionally by game settings.

This will improve the following aspects of the site:
  • 1. 1v1 players can analyse maps for suitablity based on who played first
  • 2.Script writers will not need Multiple AJAX requests on the game finder to retrieve this info = good for site
    Easy to present tournament data in a chart or even graphically.
  • Script writers will not need Multiple AJAX requests on the game finder to retrieve this info = good for site
    Easy to present scoreboard variations using the queries.

Re: API Requests

PostPosted: Sat Feb 07, 2009 4:08 pm
by InkL0sed
Sounds good to me.

Re: API Requests

PostPosted: Sun Feb 08, 2009 2:51 pm
by a.sub
as a non technophile can u explain this "API" thing to me?

Re: API Requests

PostPosted: Sun Feb 08, 2009 4:06 pm
by TaCktiX
Application Program Interface. Shnazz way of saying an interface between the game engine and us.

Re: API Requests

PostPosted: Sun Feb 08, 2009 4:50 pm
by a.sub
TaCktiX wrote:Application Program Interface. Shnazz way of saying an interface between the game engine and us.

so the idea in this thread is to make it more detailed (ie the game log) for users to extract better info on and about how things like play order affect map winners/results etc?

Re: API Requests

PostPosted: Sun Feb 08, 2009 8:56 pm
by InkL0sed
a.sub wrote:
TaCktiX wrote:Application Program Interface. Shnazz way of saying an interface between the game engine and us.

so the idea in this thread is to make it more detailed (ie the game log) for users to extract better info on and about how things like play order affect map winners/results etc?


It would mean script writers have more/better information, essentially.

Re: API Requests

PostPosted: Mon Feb 09, 2009 1:09 am
by Androidz
Great suggestion.

Re: API Requests

PostPosted: Mon Feb 09, 2009 2:17 am
by a.sub
InkL0sed wrote:
a.sub wrote:
TaCktiX wrote:Application Program Interface. Shnazz way of saying an interface between the game engine and us.

so the idea in this thread is to make it more detailed (ie the game log) for users to extract better info on and about how things like play order affect map winners/results etc?


It would mean script writers have more/better information, essentially.


in that case i like it!