Binding an external gaming platform

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/platform/bind

HTTP Method: POST

The following is an description request Json body:

external_id - External user id
platform_code - Platform code
lang - Display language
api_version - API version (default equal 1)
ga_clientId - Google Analytics ID
token - Authentication token

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 1189664332,
    "ga_clientId": "gaclientid",
    "token": "token",
    "external_id": "externalid",
    "platform_code": "platformcode"
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    }
}

The following is an example response Xml body:

<CommonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <error>
    <code>0</code>
    <message>string</message>
  </error>
</CommonResponse>