GET api/onlinestatuses/{sessionID}/{corrType}
Get list of currently online user IDs
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| sessionID |
ID сессии (получается при логине) |
string |
Required |
| corrType |
Тип пользователей |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
OnlineStatusesResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| retval |
Return code (0 - ok, otherwise - error) |
integer |
None. |
| desc |
Text description of the return code (error description) |
string |
None. |
| count |
Number of statuses |
integer |
None. |
| online |
User IDs currently online |
Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"retval": 1,
"desc": "sample string 2",
"count": 3,
"online": [
1,
2
]
}
application/xml, text/xml
Sample:
<onlinestatuses.response>
<retval>1</retval>
<desc>sample string 2</desc>
<count>3</count>
<online>
<int>1</int>
<int>2</int>
</online>
</onlinestatuses.response>