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 9: Line 9:
 
To access the data, use a URL like this: https://www.warzone.com/API/GameFeed?GameID=1212978
 
To access the data, use a URL like this: https://www.warzone.com/API/GameFeed?GameID=1212978
  
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.
 +
 
 +
<nowiki>*</nowiki> - lastTurnTime is the timestamp of the last turn or the game finish date
  
 
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 assuming it's finished.

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