obsidian/笔记文件/2.笔记/飞书机器人 curl链接参考.md

31 lines
801 B
Markdown
Raw Permalink Normal View History

2025-03-26 00:02:56 +08:00
#杂七杂八常识
创建飞书机器人后
![[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]]