>

REST API - users.getCurrentUser

 

Get current session user information.

 

Parameters

 

No parameters, except application and session parameter.

 

Authorization

 

Must be invoked within session only!

 

Result

 

Result contains:

  • uid - user ID
  • nickname - user`s portal nickname
  • first_name - user`s name
  • gender - gender
  • pic_1 - profile small icon (100x100)

 

Examples

 

Request : /users/getCurrentUser?application_id=[Application ID]&session_key=[Session Key]&sig=[Signature]

 

XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:users_getCurrentUser_response xmlns:ns2="https://api.rbkgames.com/">
    <ns2:uid>1487845</ns2:uid>
    <ns2:nickname>NickName</ns2:nickname>
    <ns2:first_name>Name</ns2:first_name>
    <ns2:gender>male</ns2:gender>
    <ns2:pic_1>https://rbkgames.com/files/pictures/ui_1487845.jpg</ns2:pic_1>
</ns2:users_getCurrentUser_response>

JSON

{
"uid":"1487845",
"nickname":"NickName",
"first_name":"Name",
"gender":"male",
"pic_1":"https://rbkgames.com/files/pictures/ui_1487845.jpg"
}

 

Помощь