文档目录

创建飞书接收端 (CreateSNSFeiShuEndpoint)

飞书接收端采用飞书机器人,用户可以使用CreateSNSFeiShuEndpoint创建飞书接收端:

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

参数(Parameters)

名字 描述 可选的 可选的参数值 起始支持版本
url 飞书机器人URL 5.0.0
atAll 是否消息@所有人 5.0.0
atPersonUserIds @用户id 5.0.0
name 资源名称 5.0.0
description 资源的详细描述 5.0.0
platformUuid 通知平台uuid 5.0.0
resourceUuid 资源UUID 5.0.0
tagUuids 标签UUID列表 5.0.0
systemTags 系统标签,请参见 创建系统标签(CreateSystemTag) 5.0.0
userTags 用户标签,请参见 创建用户标签(CreateUserTag) 5.0.0
secret 飞书密钥 5.0.0
atPersonList @用户信息 (推荐使用) 5.0.0
timeout
{
    "inventory": {
        "atAll": false,
        "atPersonList": [
            {
                "endpointUuid": "6a9c9b4cdc504da796da337a2d45a18c",
                "userId": "+86-13977889933",
                "uuid": "ad0783b009d8441696d626761a3fb521"
            },
            {
                "endpointUuid": "6a9c9b4cdc504da796da337a2d45a18c",
                "userId": "+86-12900010002",
                "uuid": "86ae00bf37654ce88cd2c1f53eb49677"
            }
        ],
        "atPersonUserIds": [
            "+86-13977889933",
            "+86-12900010002"
        ],
        "createDate": "Feb 27, 2024 11:08:37 AM",
        "lastOpDate": "Feb 27, 2024 11:08:37 AM",
        "name": "feishu",
        "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": "FeiShu",
        "url": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?keyu003df8b9014a-207a-44d5-ae26-3501bf01dbc4",
        "uuid": "6a9c9b4cdc504da796da337a2d45a18c"
    },
    "success": true
}
  • url: 飞书机器人的webhook URL
  • atAll:如果为true,则发送给飞书的消息会@所有人,并且忽略atPersonUserIds字段
  • atPersonUserIds:消息要@人员的电话号码。飞书用电话号码注册,通过这种方式@群中的成员
    Note: 飞书电话号码会补全国际区号,请点击飞书头像查看电话号码的完整表示,例如 +86-18977550789
CLI命令使用手册 | 5.4.12 | ZStack Cloud · ZCF | ZStack 资源中心