- 參考:
- http://edwardkuo.github.io/paper/2016/11/28/Azure/O365API/
- [Microsoft Teams]使用Webhook傳訊息到Teams頻道
- https://learn.microsoft.com/zh-tw/training/modules/msteams-webhooks-connectors/5-exercise-incoming-webhooks
- 作法:
- 建立Webhook連接器。
- 程式呼叫weebhook發送訊息。
- 簡易:
- {"text":"message"}
- {"text":"message","title":"this is title."}
- 進階:
- {"text":"message","title":"this is title."
"sections": [
{
"activityTitle": "Section標題",
"activitySubtitle": "Section次標題",
"activityText": "Section內文"
}]"
} - {"text":"message","title":"this is title."
"sections": [
{
"activityTitle": "Section標題",
"activitySubtitle": "Section次標題",
"activityText": "Section內文"
}
,{
"title": "很像表格的title",
"facts": [
{
"name": "欄位名",
"value": "內文"
},...
]"
} - potentialAction ...etc
2023年5月31日 星期三
[筆記]發送訊息至Teams頻道(webhook連接器)
訂閱:
文章 (Atom)