我想使用 --curl 從 GitLab 向 Microsoft Team 發送工件,有人知道我該怎么做嗎?主要思想是使用 curl 命令將檔案作為附件發送到 Teams。
注意我知道如何發送文本,但也需要發送附件。
uj5u.com熱心網友回復:
我認為不可能將 -actual- 檔案附加到 Teams 訊息中,而是可以鏈接到位于其他位置的檔案,例如,最特別是在 Teams 本身的 SharePoint 網站中。因此,例如,您將:
- 用于將檔案上傳到團隊的 SharePoint 網站的用戶圖(基本上是團隊中的“檔案”選項卡)
- 使用 Graph 發送 Teams 訊息,參考附件。這是一個例子:
https://docs.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http#example-4-send-a-message-with-file-attachment-in -它
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/427234.html
