New User Registration

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

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
email - E-mail
pass - Password
referral_id - Referral user ID (if exist in Cookie)
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": 1021692140,
    "ga_clientId": "gaclientid",
    "email": "email",
    "pass": "pass",
    "referral_id": 569325328,
    "captcha_response": "captcharesponse",
    "kohort_transition_ids": [
        321292782,
        694578920
    ]
}

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": 569325328
}

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>569325328</user_id>
</result>