文档目录

创建企业微信服务器 (CreateSNSWeComEndpoint)

企业微信接收端采用企业微信机器人,用户可以使用CreateSNSWeComEndpoint创建飞书接收端:

CreateSNSWeComEndpoint name=wecom url=https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key\u003df8b9014a-207a-44d5-ae26-3501bf01dbc4 atPersonUserIds=+86-12900010002,+86-13977889933

参数(Parameters)

名字 描述 可选的 可选的参数值 起始支持版本
url 企业微信聊天机器人webhook url 5.0.0
atAll 是否消息@所有人 5.0.0
atPersonUserIds @用户id 5.0.0
name 资源名称 5.0.0
description 资源的详细描述 5.0.0
resourceUuid 资源UUID 5.0.0
tagUuids 标签UUID列表 5.0.0
systemTags 系统标签,请参见 创建系统标签(CreateSystemTag) 5.0.0
userTags 用户标签,请参见 创建用户标签(CreateUserTag) 5.0.0
atPersonList @用户信息 (推荐使用) 5.0.0
timeout
{
    "inventory": {
        "atAll": false,
        "atPersonList": [
            {
                "endpointUuid": "b6689ad75d194c3c9836304d8177f269",
                "userId": "+86-13977889933",
                "uuid": "66cef1c252784cfe98fbb056f5083477"
            },
            {
                "endpointUuid": "b6689ad75d194c3c9836304d8177f269",
                "userId": "+86-12900010002",
                "uuid": "af662f2230ab4cc7897169547f2e33d3"
            }
        ],
        "atPersonUserIds": [
            "+86-13977889933",
            "+86-12900010002"
        ],
        "createDate": "Feb 27, 2024 5:23:19 PM",
        "lastOpDate": "Feb 27, 2024 5:23:19 PM",
        "name": "wecom",
        "platform": {
            "createDate": "Jan 30, 2024 10:23:50 AM",
            "description": "this is used by endpoints which doesn't have own application platforms",
            "lastOpDate": "Jan 30, 2024 10:23:50 AM",
            "name": "system",
            "state": "Enabled",
            "type": "system",
            "uuid": "02d24b9b0a7f4ee1846f15cda248ceb7"
        },
        "platformUuid": "02d24b9b0a7f4ee1846f15cda248ceb7",
        "state": "Enabled",
        "type": "WeCom",
        "url": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?keyu003df8b9014a-207a-44d5-ae26-3501bf01dbc4",
        "uuid": "b6689ad75d194c3c9836304d8177f269"
    },
    "success": true
}
  • url: 企业微信机器人的webhook URL
  • atAll:如果为true,则发送给企业微信的消息会@所有人,并且忽略atPersonUserIds字段
  • atPersonUserIds:消息要@人员的电话号码。企业微信电话号码注册,通过这种方式@群中的成员
    Note: 企业微信电话号码会补全国际区号,请点击企业微信头像查看电话号码的完整表示,例如 +86-18977550789
CLI命令使用手册 | 5.5.30 | ZStack Cloud · ZCF | ZStack 资源中心