Editing Query game API

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
There's nothing the feed can see that isn't already available through the game's normal interface.  This is just a way to write custom analyzers which allows for a broader analysis across games.  
 
There's nothing the feed can see that isn't already available through the game's normal interface.  This is just a way to write custom analyzers which allows for a broader analysis across games.  
 
The primary goals of this API is to enable tools that do statistical analysis of finished games and to enable custom ladders or custom tournaments to check on the winners of the game after it's over.
 
  
 
==Usage==
 
==Usage==
Line 11: Line 9:
 
This will return data describing basic details(id, state, name, numberOfTurns, lastTurnTime, templateID, players) about the game.
 
This will return data describing basic details(id, state, name, numberOfTurns, lastTurnTime, templateID, players) about the game.
  
If you want to get the entire turn history of the game, add an additional querystring parameter '''GetHistory=true'''.  Adding this will cause the API to return you details about every turn of the game assuming it's finished.
+
If you want to get the entire turn history of the game, add an additional querystring parameter '''GetHistory=true'''.  Adding this will cause the API to return you details about every turn of the game.
  
 
If you want to get a game's settings, add an additional querystring parameter '''GetSettings=true'''.  Adding this will cause the API to return you details about the settings of the game.
 
If you want to get a game's settings, add an additional querystring parameter '''GetSettings=true'''.  Adding this will cause the API to return you details about the settings of the game.

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox