聊天历史
GET
/message/history
请求参数
Query 参数
token
string
必需
pageSize
string
页数
seq
string
游标(用于定位)
snapshotDay
string
日期时间
imBotId
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://aa-stream-api.ddregion.com/message/history?token=&pageSize=&seq=&snapshotDay=&imBotId ='
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
object
必需
botId
string
本系统托管账号ID
messageId
string
系统消息id
chatId
string
系统会话id
avatar
string
会话对象头像
roomTopic
string
群名
roomId
string
群id
contactName
string
发送消息对象名称
contactId
string
发送消息对象系统id
payload
object
消息详情,详细参考接受消息接口
type
number
消息类型
timestamp
string
消息的时间(ms)
contactType
number
客户的类型
coworker
boolean
是否为内部员工
botWeixin
string
账号企业微信员工id
isSelf
boolean
消息是否是托管账号自己发送的消息
示例
{
"code": 0,
"data": {
"botId": "string",
"messageId": "string",
"chatId": "string",
"avatar": "string",
"roomTopic": "string",
"roomId": "string",
"contactName": "string",
"contactId": "string",
"payload": {
"text": "string"
},
"type": 0,
"timestamp": "string",
"contactType": 0,
"coworker": true,
"botWeixin": "string",
"isSelf": true
}
}
修改于 2024-10-11 09:07:34