自学内容网 自学内容网

基于gewechat制作第一个微信聊天机器人

Gewe 个微框架

GeWe(个微框架)是一个创新性的软件开发框架,为个人微信号以及企业信息安全提供了强大的功能和保障。GeWe的设计旨在简化开发过程,使开发者能够高效、灵活地构建和定制通信协议,以满足不同应用场景的需求。

请求参数

Header 参数

export interface ApifoxModel {
    "X-GEWE-TOKEN": string;
    [property: string]: any;
}

Body 参数application/json

export interface ApifoxModel {
    /**
     * 设备ID
     */
    appId: string;
    /**
     * 发送类接口返回的createTime
     */
    createTime: string;
    /**
     * 发送类接口返回的msgId
     */
    msgId: string;
    /**
     * 发送类接口返回的newMsgId
     */
    newMsgId: string;
    /**
     * 好友/群的ID
     */
    toWxid: string;
    [property: string]: any;
}

示例

{
    "appId": "",
    "toWxid": "34757816141@chatroom",
    "msgId": "769533801",
    "newMsgId": "5271007655758710001",
    "createTime": "1704163145"
}

示例代码

curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/message/revokeMsg' \
--header 'X-GEWE-TOKEN: ' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "",
    "toWxid": "34757816141@chatroom",
    "msgId": "769533801",
    "newMsgId": "5271007655758710001",
    "createTime": "1704163145"
}'

返回响应

成功(200)

HTTP 状态码: 200 内容格式: JSONapplication/json

数据结构

export interface ApifoxModel {
    msg: string;
    ret: number;
    [property: string]: any;
}

示例

{
    "ret": 200,
    "msg": "操作成功"
}

原文地址:https://blog.csdn.net/2401_82817454/article/details/142882331

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!