31 lines
801 B
Markdown
31 lines
801 B
Markdown
![]() |
#杂七杂八常识
|
|||
|
|
|||
|
创建飞书机器人后
|
|||
|
|
|||
|
![[Pasted image 20240905162819.png]]
|
|||
|
|
|||
|
![[Pasted image 20240905162837.png]]
|
|||
|
|
|||
|
对应的webhook地址
|
|||
|
|
|||
|
![[Pasted image 20240905162858.png]]
|
|||
|
|
|||
|
win+r,打开cmd测试,测试的shell脚本
|
|||
|
(需要注意的是,shell脚本的换行符是`^`)
|
|||
|
|
|||
|
``` shell
|
|||
|
curl --location --request POST "https://open.larksuite.com/open-apis/bot/v2/hook/38ebaa0a-ed93-48b1-a6ac-c9cd5d20942a" ^
|
|||
|
--header "Content-Type: application/json" ^
|
|||
|
--header "Accept: */*" ^
|
|||
|
--header "Host: open.larksuite.com" ^
|
|||
|
--header "Connection: keep-alive" ^
|
|||
|
--data-raw "{ \"msg_type\": \"text\", \"content\": { \"text\": \"request example\" }}"
|
|||
|
```
|
|||
|
|
|||
|
会提示发送成功
|
|||
|
|
|||
|
![[Pasted image 20240905163009.png]]
|
|||
|
|
|||
|
机器人转发消息,正常
|
|||
|
|
|||
|
![[Pasted image 20240905163027.png]]
|