Update notifications.md (#52)

Add DingTalk Group bot Notification to Alarm Method
This commit is contained in:
looha 2024-02-24 23:23:49 +08:00 committed by GitHub
parent 1a3cc9de23
commit 6ab1853ebd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,15 @@ Refer to the example below, it is very flexible.
```
Notes for this method: This method requires calling Microsoft Graph V1.0, you need to go to Microsoft Graph and create your own application, give `Mail.Send` permission and get the Token, or you can go [Microsoft Graph Explorer](https://developer.microsoft.com/en-us/graph/graph-explorer) directly to give permission and get the Token, just replace the Token in the Header with the actual Token.
- **DingTalk Group bot notification Example**
- Name: DingTalk Group
- URL: https://oapi.dingtalk.com/robot/send?access_token=xxxxxxx
- Request method: POST
- Request Type: JSON
- Header: `{"Content-Type": "application/json"}`
- Body: `{"msgtype": "text","text": {"content":"nezha\n#NEZHA#"}}`
- Notes for this methodURL:Creating bot in DingTalk groups to obtain bot URLs, Security settings validation set to custom keywordsThe security settings validation is set to a custom keyword, and the keyword must be included in the content field of the body, such as nezha
- **Wechat Work Group bot Example, contributed by [@ChowRex](https://github.com/ChowRex)**