在当今数字化迅速发展的时代,微信已成为人们日常沟通的重要工具。随着用户对自动化和智能化的需求日益增加,微信机器人应运而生,它通过模拟人类的对话,为用户提供高效便捷的服务。本文将为您详细介绍如何通过GeWe框架制作一个属于自己的微信机器人,助您轻松实现这一目标。

请求参数

Header 参数

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

Body 参数application/json

export interface ApifoxModel {
    /**
     * 设备ID
     */
    appId: string;
    /**
     * 群ID
     */
    chatroomId: string;
    /**
     * 群备注
     */
    chatroomRemark: string;
    [property: string]: any;
}

示例

{
    "appId": "",
    "chatroomRemark": "GeWe test private",
    "chatroomId": "34757816141@chatroom"
}

示例代码

curl --location --request POST 'http://api.geweapi.com/gewe/v2/api/group/modifyChatroomRemark' \
--header 'X-GEWE-TOKEN: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "appId": "",
    "chatroomRemark": "GeWe test private",
    "chatroomId": "34757816141@chatroom"
}'

返回响应

成功(200)

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

数据结构

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

示例

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