Changing a password

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

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
old_pass - New password
new_pass - Old password

The following is an example request Json body:

{
    "lang": "lang",
    "api_version": 1262999504,
    "ga_clientId": "gaclientid",
    "token": "token",
    "old_pass": "oldpass",
    "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
old_password_error - Error in old password
new_password_error - Error in new password

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": 1262999504,
    "old_password_error": true,
    "new_password_error": true
}

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>1262999504</user_id>
  <old_password_error>true</old_password_error>
  <new_password_error>true</new_password_error>
</result>