- API在线调试指南
- IM账号管理
- 用户名片管理
- 好友管理
- 静音管理
- 黑名单管理
- 消息管理
- 会话功能
- 群组功能
- 聊天室功能
- 聊天室管理
- 聊天室成员
- 广播消息管理
- 系统通知管理
- 发布订阅
- 翻译
同意/拒绝添加好友
开发中
POST
/im/v2/friends/actions/handle_friend_addition
请求参数
Query 参数
type
integer
可选
Header 参数
AppKey
string
必需
默认值:
{{AppKey}}
X-custom-traceid
string
可选
默认值:
{% mock 'uuid' %}
Nonce
string
必需
默认值:
{{Nonce}}
CurTime
string
必需
默认值:
{{CurTime}}
CheckSum
string
必需
默认值:
{{CheckSum}}
Body 参数application/json
account_id
string
发起者的云信账号。
friend_account_id
string
必需
alias
string
可选
extension
string
可选
customer_extension
string
可选
postscript
string
显示文案
示例
{
"account_id": "string",
"friend_account_id": "string",
"alias": "string",
"extension": "string",
"customer_extension": "string",
"postscript": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.yunxinapi.com/im/v2/friends/actions/handle_friend_addition?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
friend_account_id
string
必需
alias
string
可选
extension
string
可选
customerExtension
string
可选
示例
{
"code": 0,
"msg": "string",
"data": {
"friend_account_id": "string",
"alias": "string",
"extension": "string",
"customerExtension": "string"
}
}
🟢200成功
🟢200请求参数错误
🟢200服务器错误
修改于 2024-12-25 02:04:27