You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please keep this webhook address properly and do not publish it on publicly accessible websites such as Gitlab and blogs to avoid being maliciously called to send spam messages after the address is leaked.
114
+
115
+
Later, you can click the robot picture to the right of the group name to enter the custom robot details page and manage the configuration information of the custom robot.
116
+
117
+
Test calling the webhook address of the custom robot to send a message to the group it belongs to.
118
+
119
+
Initiate an HTTP POST request to the webhook address in any way.
120
+
121
+
You need to have a certain server-side development foundation, and call the webhook address through the server-side HTTP POST request. Taking the curl command as an example, the request example is as follows.
124
122
125
-
### 5. 发送消息到 Larksuite 群
123
+
```
124
+
POST /open-apis/bot/v2/hook/xxxx HTTP/1.1
125
+
Host: open.larksuite.com
126
+
Content-Type: application/json
127
+
Accept: */*
128
+
Host: open.larksuite.com
129
+
Connection: keep-alive
130
+
131
+
{
132
+
"msg_type": "text",
133
+
"content": {
134
+
"text": "request example"
135
+
}
136
+
}
137
+
```
138
+
139
+
### 发送消息到 Larksuite 群
126
140
127
141
推送消息到 Larksuite
128
142
@@ -185,3 +199,39 @@ public class MonitoringNotificationTest {
0 commit comments