通过成员userid获取账号botId
GET
/api/v1/bot/wecomUserId_to_botId
请求参数
Query 参数
token
string
调用接口凭证
wecomUserId
string
必需
,邮箱的格式)
corpId
string
企业corpId
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v1/bot/wecomUserId_to_botId?token=&wecomUserId=&corpId='
返回响应
🟢200成功
application/json
Body
errcode
number
返回码
errmsg
string
对返回码的文本描述内容
botId
string
托管账号id
imBotId
string
必需
示例
{
"errcode": 0,
"errmsg": "string",
"botId": "string",
"imBotId": "string"
}
修改于 2025-04-16 09:09:30