Binding a referral to the user

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

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
url_transition - GET-parameters of URL
referral_id - Referral user ID (if exist in Cookie)

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 488157208,
    "ga_clientId": "gaclientid",
    "token": "token",
    "url_transition": "urltransition",
    "referral_id": 1483393915
}

Description of how to response:

error - Error information
    code - Error code. Error 0 - no error
    message - Error message. Empty if none
referral_id - Referral user ID (if exist in Cookie)

The following is an example response Json body:

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

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>
  <referral_id>1483393915</referral_id>
</result>