Editing Query game API
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. |