功能说明
处理好友申请
请求说明
请求鉴权:接口需要增加验证 Header,请查看 鉴权说明
请求类型:
POST
请求限频:
100次/秒
请求地址:https://请求域名/jim/friends/confirm
Content-Type:
application/json
请求参数
参数 | 数据类型 | 是否必填 | 参数说明 | |
---|---|---|---|---|
sponsor_id | string | 是 | 申请人的用户id | |
is_agree | bool | 是 | 是否同意。false:拒绝;true:同意; |
请求示例
POST /jim/friends/confirm HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"sponsor_id":"userid1",
"is_agree":true
}
响应示例
{
"code":0,
"msg":"sucess"
}
响应码
响应码 | 说明 | |
---|---|---|
17103 | 好友申请已过期 |