个人微信号api二次开发

0 阅读1分钟

随着私域规模扩大,企业在微信生态中面临重复操作多、效率受限、管理复杂的问题。加好友、发消息、维护社群等基础工作一旦依赖人工,容易成为增长瓶颈。

GeWe 开放平台(GeWe Framework)  通过标准化接口与自动化能力,将高频操作系统化,帮助企业从“人工执行”转向“系统驱动”。

核心能力

  • 客户管理:自动加粉、标签与备注同步,实现精细化管理
  • 消息能力:统一收发多种消息类型,提升触达效率
  • 社群运营:自动建群与管理,运营更规范高效
  • 多账号协同:统一管理账号,支持朋友圈批量分发

核心价值

  • 提升效率,减少重复操作
  • 降低成本,减少人力依赖
  • 提高稳定性,降低人为误差
  • 支撑规模化增长

通过 GeWe,企业可以将私域运营流程自动化,实现更高效、更稳定的增长。

请求参数

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": "{{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"
    ]
}'

返回响应

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

export interface Datum {
    /**
     * 0:正常 1:删除 2:被拉黑3:已拉黑对方4:功能异常5:检测频繁6:未知状态7:未知错误99:其他
     */
    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
        }
    ]
}