人工智能浪潮席卷下,自动化工具已成为现代办公场景的标配。在社交通讯领域,微信机器人凭借其智能化交互能力,正在重塑信息管理方式:7×24小时自动应答、千人社群精准维护、营销活动定时触达等场景应用,显著提升运营效率30%以上。GeWe框架以其模块化设计和极简API接口,让开发者无需深入底层协议即可快速构建企业级机器人应用。
检测好友关系
请求参数
Header 参数
export interface ApifoxModel {
"X-GEWE-TOKEN": string;
[property: string]: any;
}
Body 参数application/json
export interface ApifoxModel {
/**
* 设备ID
*/
appId: string;
/**
* 好友的wxid
*/
wxids: string[];
[property: string]: any;
}
示例
{
"appId": "",
"wxids": [
"wxid_phyyedw9xap22"
]
}
示例代码
curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/contacts/checkRelation' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "",
"wxids": [
"wxid_phyyedw9xap22"
]
}'
返回响应
成功(200)
HTTP 状态码: 200 内容格式: JSON application/json
数据结构
export interface ApifoxModel {
data: Datum[];
msg: string;
ret: number;
[property: string]: any;
}
export interface Datum {
/**
* 0:正常 1:删除 2:拉黑
*/
relation: number;
/**
* 好友的wxid
*/
wxid: string;
[property: string]: any;
}
示例
{
"ret": 200,
"msg": "检测好友关系成功",
"data": [
{
"wxid": "wxid_adfwh232asd",
"relation": 1
},
{
"wxid": "wxid_adfgsfghe2322",
"relation": 2
},
{
"wxid": "wxid_adfgsfgfnytj2",
"relation": 0
}
]
}