Authorization

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

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
login - Login
pass - Password
captcha_response - Response key from captcha for checking up at server
kohort_transition_ids - List of transition ids for getting kohort request
    Empty - 
    [
    ]

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 1740341958,
    "ga_clientId": "gaclientid",
    "login": "login",
    "pass": "pass",
    "captcha_response": "captcharesponse",
    "kohort_transition_ids": [
        895245488,
        1557022126
    ]
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none
access_token - Authentication token
user_id - ID user's in Playkey

The following is an example response Json body:

{
    "error": {
        "code": 0,
        "message": "string"
    },
    "access_token": "string",
    "date_expires": "01-01-0001 00:00:00",
    "user_id": 895245488
}

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>
  <access_token>string</access_token>
  <date_expires>01-01-0001 00:00:00</date_expires>
  <user_id>895245488</user_id>
</result>