Launching a game

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/games/play

HTTP Method: POST

The following is an description request Json body:

lang - Display language
api_version - API version (default equal 1)
ga_clientId - Google Analytics ID
token - Authentication token
code_game - Game code
play_config - Configuration name
get_short_token - Get short play token
client_type - Client type

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 463687113,
    "ga_clientId": "gaclientid",
    "token": "token",
    "code_game": "codegame",
    "play_config": "playconfiguration",
    "get_short_token": false,
    "client_type": "clienttype"
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none
key - Token for sending to a manager
play_url - Player launch URI
short_key - Short token for sending to a manager

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    },
    "key": "string",
    "active_to": "01-01-0001 00:00:00",
    "play_url": "string",
    "short_key": "string"
}

The following is an example response Xml body:

<result xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <error>
    <code>0</code>
    <message>string</message>
  </error>
  <key>string</key>
  <active_to>01-01-0001 00:00:00</active_to>
  <play_url>string</play_url>
  <short_key>string</short_key>
</result>