-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
场景:飞书多维表格提交的附件,需要通过微信发出。飞书不支持HTTP请求直接发送附件,但是可以通过飞书中的“附件转cdn链接”,将附件转换成直链,多附件请求示例,是为了迎合飞书“附件转cdn链接”的格式。
需求:希望增加通过直链发送附件的功能
多附件请求示例
curl -X POST http://localhost:5000/api/message/send-file
-H "X-API-Key: your-api-key"
-H "Content-Type: application/json"
-d '{
"receiver": "文件传输助手",
"file_paths": "https://oss-cn-shanghai.aliyuncs.com/2025/06/29/4OzW2M.mp4https://oss-cn-shanghai.aliyuncs.com/2025/06/29/hUirDg.jpghttps://oss-cn-shanghai.aliyuncs.com/2025/06/29/P9gUHg.png"
}'
单附件请求示例
curl -X POST http://localhost:5000/api/message/send-file
-H "X-API-Key: your-api-key"
-H "Content-Type: application/json"
-d '{
"receiver": "文件传输助手",
"file_paths": "https://oss-cn-shanghai.aliyuncs.com/2025/06/29/P9gUHg.png"
}'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels