-
Notifications
You must be signed in to change notification settings - Fork 117
wecom
IvonWei edited this page Dec 13, 2024
·
5 revisions
企业微信消息发送插件,微信可关注微工作台接收消息,不必安装企业微信
企业微信获取参数:https://work.weixin.qq.com/api/doc/90000/90135/90665
notify:
entries:
message: "Title: {{title}}"
via:
- wecom:
corp_id: <corp_id>
# 小程序secret
corp_secret: <corp_secret>
agent_id: <agent_id>
to_user: <to_user>
image: 'details_report.png' #发送 config 目录 下的 details_report.png 图片
json模式: https://work.weixin.qq.com/api/doc/90000/90135/90236 图文消息示例
set:
image_url: https://alifei01.cfp.cn/creative/vcg/800/new/VCG41N1210205351.jpg
notify:
entries:
message: |+
{
"touser" : "xxxxxxxx",
"msgtype" : "news",
"agentid" : xxxxxxxx,
"news" : {
"articles":[
{
"title" : "中秋节礼品领取",
"description" : "今年中秋节公司有豪礼相送",
"picurl": "{{image_url}}"
}
]
},
"safe":0,
"enable_id_trans": 0,
"enable_duplicate_check": 0,
"duplicate_check_interval": 1800
}
via:
- wecom:
corp_id: 'xxxxxxxx'
corp_secret: 'xxxxxxxx'
type: json