通过手机号加好友接口
POST
/addFriend/send
请求参数
Body 参数application/json
token
string
调用接口凭证
phoneNum
string
手机号
remark
string
备注信息
helloMsg
string
邀请语
extraInfo
string
附加信息,回调原样返回
userId
string
托管账号的企业微信员工Id,不填则由对应小组随机托管账号执行加好友操作
instant
boolean
是否实时加好友
示例
{
"token": "string",
"phoneNum": "string",
"remark": "string",
"helloMsg": "string",
"extraInfo": "string",
"userId": "string",
"instant": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/addFriend/send' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
number
返回码
示例
{
"code\t": 0
}
修改于 2024-10-24 10:49:05