Table of Contents

Embedding the Engine into Other Services

The GET parameter `json` must be added to all requests. In this case, the response will be returned in JSON format.

Authentication

Used: login.php

POST parameters:

user - player login

pass - player password

You must save cookies and pass them all in subsequent requests.

If the response contains a field named login_error, the authentication failed.

Creating One-Time Teams

Entry point: admin/game_teams.php

GET parameters:

POST:

An array of unique player/team tokens in JSON format.

The response returns a JSON containing the team names (the tokens accepted in POST), team IDs, and keys for entering the game.

The link to enter the game is assembled as:

/game.php?gid=game_id&tid=team_id&key=team_key