获取会话列表
GET
https://aa-hub.ddregion.com/chat/list
请求参数
Query 参数
token
string
调用接口凭证
iterator
string
可选
pageSize
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-hub.ddregion.com/chat/list?token =&iterator=&pageSize='
返回响应
🟢200成功
application/json
Body
code
string
返回码
nextIterator
string
下一页需要传入的迭代器,仅当下一页存在数据的时候才会返回,如果当前没有下一页数据了,则此值不存在
chats
array [object {13}]
对应的会话数据数组
chatId
string
系统会话id
assigneeId
string
当前会话分配的人,如果为空字符串说明当前对话处于未分配状态uid
botId
string
当前会话所属的托管账号id
type
enum<integer>
会话类型
枚举值:
01
wxid
string
当前对象系统id
avatarUrl
string
当前会话的名字
name
string
当前会话的名字
extraInfo
string
当前会话的额外信息
contactType
string
私聊会话类型
coworker
string
当前私聊会话对象是否为企业内部成员
corporation
string
当前私聊会话对象是否为企业内部成员
externalUserId
string
当前对话对象的企业微信外部联系人id
wecomChatId
string
当前对话对象的企业微信外部群聊id
示例
{
"code": "string",
"nextIterator": "string",
"chats": [
{
"chatId": "string",
"assigneeId": "string",
"botId": "string",
"type": 0,
"wxid": "string",
"avatarUrl": "string",
"name": "string",
"extraInfo": "string",
"contactType": "string",
"coworker": "string",
"corporation": "string",
"externalUserId": "string",
"wecomChatId": "string"
}
]
}