- 开发说明
- 项目案例(部分)
- 开发API
- 登录模块
- 联系人相关接口
- 群管理接口
- 消息模块
- 朋友圈模块
- 标签模块
- 个人模块
- 收藏夹模块
- 视频号模块
检测好友关系
POST
/contacts/checkRelation
基础API/联系人模块
请求参数
Header 参数
VideosApi-token
string
必需
示例值:
{{VideosApi-token}}
Body 参数application/json
appId
string
设备ID
wxids
array[string]
好友的wxid
>= 1 items<= 20 items
示例
{
"appId": "{{appid}}",
"wxids": [
"wxid_**********"
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.videosapi.com/finder/v2/api/contacts/checkRelation' \
--header 'VideosApi-token: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "{{appid}}",
"wxids": [
"wxid_**********"
]
}'
返回响应
🟢200成功
application/json
Body
ret
integer
必需
msg
string
必需
data
array [object {2}]
必需
wxid
string
好友的wxid
relation
integer
必需
示例
{
"ret": 200,
"msg": "检测好友关系成功",
"data": [
{
"wxid": "wxid_adfwh232asd",
"relation": 1
},
{
"wxid": "wxid_adfgsfghe2322",
"relation": 2
},
{
"wxid": "wxid_adfgsfgfnytj2",
"relation": 0
}
]
}

产品可行性及API相关问题咨询

