如何使用gewe开发微信机器人

基于个人微信gewe框架如何发生文本消息

经常有做微信的朋友,问我能不能帮他实现公众号的这些功能啊、在微信方面能公开的我都免费共享给大家了,无论是微信网页方面的还是微信数据来源,我都在相关的平台或文章中公开给大家参考。至于怎么用怎么具体实现,这是一个大话题,昨天有位朋友说他买了本微信开发方面的书,结果看了几天云里雾里一点都看不懂。严格来说微信开发并不是一门独立技术,学会编程后再看看微信官方接口文档自然就会了。


请求参数

Header 参数

export interface ApifoxModel {

    "X-GEWE-TOKEN": string;

    [property: string]: any;

}

Body 参数application/jsonexport 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 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \

--header 'Content-Type: application/json' \

--data-raw '{

    "appId": "",

    "wxids": [

        "wxid_phyyedw9xap22"

    ]

}'

返回响应

成功(200)

HTTP 状态码: 200 内容格式: 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

        }

    ]

}

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容