Setting a password

Url: https://api.playkey.net/rest/PlaykeyAPI.svc/user/pass/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
new_pass - Old password

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 650294290,
    "ga_clientId": "gaclientid",
    "token": "token",
    "new_pass": "newpass"
}

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

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