基于gewe制作一个微信机器人

360影视 2025-01-23 13:28 2

摘要:GeWe开放平台是基于微信开放平台的二次封装API服务,开发者可以使用本服务来处理微信中的各种事件,并可以通过后台调用对应的 API 来驱动微信自动执行任务,如自动收发消息、自动化应答、自动群邀请、群管理等,封装了RPA技术流程,简化开发者二次开发难度,提供了

GeWe开放平台是基于微信开放平台的二次封装API服务,开发者可以使用本服务来处理微信中的各种事件,并可以通过后台调用对应的 API 来驱动微信自动执行任务,如自动收发消息、自动化应答、自动群邀请、群管理等,封装了RPA技术流程,简化开发者二次开发难度,提供了开发者与微信对接的能力,使用简单,操作快捷,支持多种语言接入。

请求参数

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;}

示例

示例代码

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}]}

来源:走进科技生活

相关推荐