Delete game API

From WarLight Wiki
Jump to: navigation, 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.

[edit] Usage

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

   "Email": "",
   "APIToken": "yourApiToken",
   "gameID": 1234
Personal tools