본문 바로가기

IT/Internet

[Microsoft Teams] Incoming Webhook Test

Microsoft Teams 채널에 Webhook 앱을 추가해서 URL 을 확인한다.

 

Webhook Test

Powershell

Invoke-RestMethod -Method post -ContentType 'Application/Json' -Body '{"@context":"https://schema.org/extensions","@type":"MessageCard","themeColor":"0072C6","title":"Hello Teams!","text":"Hell Law World"}' -Uri https://웹훅URL

 

Shell

curl -d '{"@context":"https://schema.org/extensions","@type":"MessageCard","themeColor":"0072C6","title":"Hello Teams!","text":"Hell Law World"}' -H "Content-Type: Application/JSON" -X POST https://웹훅URL

 

 

 

Comments