Delete game API

From Warzone Wiki
Revision as of 17:51, 12 January 2013 by Fizzer (talk | contribs) (Created page with "The ***Delete Game API*** allows you to delete WarLight games that you created. It can only delete games that are still in the lobby (i.e., the game has not yet started sin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The ***Delete Game API*** allows you to delete WarLight games that you created.

It can only delete games that are still in the lobby (i.e., the game has not yet started since not all players have accepted it.) It's functionally equivalent to the Delete Game button that is already present in the lobby.

Usage

To delete a game, simply POST some JSON to http://warlight.net/API/DeleteLobbyGame that contains your credentials and the ID of the game you wish to delete. Use the following format as a guide:


 {
   "Email": "your@email.com",
   "APIToken": "yourApiToken",
   "gameID": 1234
 }