通过unionId获取chatId
GET
https://aa-hub.ddregion.com/api/v1/instantReply/getChatId
📌
备注
-1 系统没有绑定对应功能
-2 botUserId的bot不存在
-3 botUserId存在多个机器人
-4 contact不存在
-5 chat不存在
请求参数
Query 参数
token
string
调用接口凭证
unionId
string
客户开放平台id
botUserId
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/api/v1/instantReply/getChatId?token=&unionId=&botUserId ='
返回响应
🟢200成功
application/json
Body
errcode
integer
返回码
errmsg
string
对返回码的文本描述内容
chatId
string
联系人的chatId
示例
{
"errcode": 0,
"errmsg": "string",
"chatId": "string"
}
修改于 2024-02-29 11:15:59