Page History

Imchatroomuser

Last edited by 国亚奇

返回

查询聊天室内用户


URL: http://10.136.39.230:8080/cnlive_room/api/chatroom/user/queryt


请求方式: HTTP GET


请求参数说明:

参数名 参数类型 必选 参数说明
appId String true 应用ID
chatroomId String true 聊天室ID
count String false 聊天室成员数,默认是500;上限为500
order String false 加入聊天室的先后顺序,默认是 1;
1:加入时间正序, 2:加入时间倒序

返回格式: JSON


返回格式样例:

{
    "errorCode": "0",
    "errorMessage": "查询聊天室内用户数成功",
    "data": {
        "total": 500,
        "users": [
            {
                "id": "uid1",                  // 用户ID
                "time": "2015-09-10 16:38:26"  // 加入聊天室时间
            },
            {
                "id": "uid2",
                "time": "2015-09-10 16:38:26"
            }
        ]
    }
}