REST API - users.getInfo

Returns a wide array of user-specific information for each user identifier passed.

Parameters
NameRequiredTypeDescription
uidsYStringThe list of coma separated user ID's. The max number of IDs is 100.
fieldsYStringThe list of coma separated field name

Available field names:

  • uid - user ID
  • locale - (en, lv, ...)
  • online - true/false is online or not
  • nickname - user`s portal nickname
  • first_name - user`s name
  • gender - gender
  • pic_1 - profile small icon (100x100)
Authorization
  • If user is blocked, no information will be returned for his ID
Examples

Request : /users/getInfo?application_id=[Application ID]&sig=[Signature]&uids=111,222&fields=uid,first_name,locale,gender,pic_1

XML

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:users_getInfo_response xmlns:ns2="https://api.rbkgames.com/">
    <ns2:users>
        <ns2:uid>111</ns2:uid>
        <ns2:locale>ru</ns2:locale>
        <ns2:gender>male</ns2:gender>
        <ns2:first_name>Name</ns2:first_name>
        <ns2:pic_1>https://rbkgames.com/files/pictures/ui_111.jpg</ns2:pic_1>
    </ns2:users>    <ns2:users>
        <ns2:uid>222</ns2:uid>
        <ns2:locale>ru</ns2:locale>
        <ns2:gender>male</ns2:gender>
        <ns2:first_name>Name</ns2:first_name>
        <ns2:pic_1>https://rbkgames.com/files/pictures/ui_222.jpg</ns2:pic_1>
    </ns2:users>
</ns2:users_getInfo_response>

JSON

[{
"uid":"111",
"locale":"ru",
"first_name":"Name",
"gender":"male",
"pic_1":"https://rbkgames.com/files/pictures/ui_111.jpg"
},
{
"uid":"222",
"locale":"ru",
"first_name":"Name",
"gender":"male",
"pic_1":"https://rbkgames.com/files/pictures/ui_222.jpg"
}]

Note! If some fields don't have any content, this fields won't be returned.

Помощь