Send notifications to WeCom
This guide explains how to send the notifications of Casdoor to a WeCom (WeChat Work) group through a group bot.
Learning outcomes
- Create a WeCom group bot.
- Add WeCom as a notification provider in Casdoor.
What you need
- A WeCom group chat
- Administrator access to the Casdoor admin console
Create a group bot
In the settings of a WeCom group chat, add a bot and copy its webhook URL, in the form https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY. See the WeCom webhook documentation.
Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
Notificationand Type toWeCom. -
Paste the webhook URL into Endpoint:
Casdoor WeCom Ponto de extremidade Webhook URL -
Optionally, set a message template in Content.
-
Click Send Testing Notification, and save the provider.