801 B
801 B
#杂七杂八常识
创建飞书机器人后
对应的webhook地址
win+r,打开cmd测试,测试的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\" }}"
会提示发送成功
机器人转发消息,正常