获取房间内聊天记录

Example

POST getchatlist

https://global.talk-cloud.net/WebAPI/getchatlist

参数

参数名 请求参数说明 类型 长度 缺省值 备注
key authKey String 16 必填(预设:5NIWjlgmvqwbt494)
serial 房间id Int 11 必填
starttime 开始时间 Int 11 选填
endtime 结束时间 Int 11 选填
page 页数 Int 11 选填(默认第一页,每页返回100条)
thirdroomid 第三方教室id String 选填
参数名 类型 备注
result Int 0:成功 -1:缺少房间id或房间不存在
info String 返回说明
serial String 房间号
toUserID String 接收的用户id
toUserNickname String 接收的用户昵称
msg String 发送内容
fromID String 发送的用户id
nickname String 发送的用户名
type Int 聊天类型 0:公聊
ts Int 聊天时间
role Int 角色id

返回示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
    "result":0,
    "info":"OK",
    "pageList": {
        "total": 1115,
        page: "1",
        "shownum": "100"
    },
    "data":[
        {
            "_id":{
                "$oid":"5ee9df3287615246ba5412df"
            },
            "serial":"1341570284",
            "msg":"u5f00u59cbu4e0au8bfe",
            "fromID":"770f5e14-a5db-769b-51ff-cd66266f252e",
            "nickname":"IWantSeeYouAgain",
            "type":0,
            "ts":1592385330588,
            "companyid":"10377",
            "role":0
        },
        {
            "_id":{
                "$oid":"5ee9df2ea43e5050a4a4fe69"
            },
            "serial":"1341570284",
            "msg":"u60a8u597d",
            "fromID":"770f5e14-a5db-769b-51ff-cd66266f252e",
            "nickname":"IWantSeeYouAgain",
            "type":0,
            "ts":1592385326966,
            "companyid":"10377",
            "role":0
        }
    ]
}

© 2016-2023 北京拓课网络科技有限公司 版权所有  京ICP备17018423号-1 京公网安备11010502043461号