- 语聚AI应用助手API使用说明
- AI助手 API
- 外部联系人API
- 知识库
- 通用功能API
- AI营销
离群事件回调
GET
leave-group
请求参数
Body 参数application/json
chatId
string
群聊的对话id
botInfo
object
触发事件的托管账号信息
imBotId
string
托管账号的系统员工id
wecomUserId
string
托管账号企业微信员工id
nickName
string
托管账号的昵称
imRoomId
string
系统群聊id
topic
string
群名称
avatarUrl
string
群头像地址
ownerImContactId
string
群主的系统联系人id
leftMember
array [object {8}]
离群成员信息
imContactId
string
群成员的系统联系人id
nickName
string
群成员的昵称
avatarUrl
string
群成员的头像地址
roomAlias
string
群成员备注
isFriend
boolean
与此托管账号是否为好友
contactType
integer
联系人类型
coworker
boolean
是否为同事
isSelf
boolean
离群成员是否为托管账号自己触发
groupId
string
群聊所属小组id
timestamp
string
必需
示例
{
"chatId": "string",
"token": "string",
"botInfo": {
"imBotId": "string",
"wecomUserId": "string",
"nickName": "string"
},
"imRoomId": "string",
"topic": "string",
"avatarUrl": "string",
"ownerImContactId": "string",
"leftMember": [
{
"imContactId": "string",
"nickName": "string",
"avatarUrl": "string",
"roomAlias": "string",
"isFriend": true,
"contactType": 0,
"coworker": true,
"isSelf": true
}
],
"groupId": "string",
"timestamp": "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://chat.jijyun.cnleave-group' \
--header 'Content-Type: application/json' \
--data-raw '{
"chatId": "string",
"token": "string",
"botInfo": {
"imBotId": "string",
"wecomUserId": "string",
"nickName": "string"
},
"imRoomId": "string",
"topic": "string",
"avatarUrl": "string",
"ownerImContactId": "string",
"leftMember": [
{
"imContactId": "string",
"nickName": "string",
"avatarUrl": "string",
"roomAlias": "string",
"isFriend": true,
"contactType": 0,
"coworker": true,
"isSelf": true
}
],
"groupId": "string",
"timestamp": "string"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}