【发布时间】:2017-10-13 14:02:56
【问题描述】:
有人知道我是不是做错了什么,或者目前有什么东西不工作?
- 我使用 MessageCard Playground 并希望将数据发送到 Teams 频道。
- 我确实设置了连接器并获得了一个 webhook url。
- 现在我想向频道发送一些样本(有效的 json)
知道我做错了什么吗?
更新
示例 JSON
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "Issue 4711",
"themeColor": "0078D7",
"title": "Issue opened: \"TEST Message for webhook\"",
"sections": [
{
"activityTitle": "Yves Rausch",
"activitySubtitle": "10/12/2017, 22:34",
"facts": [
{
"name": "Title:",
"value": "TinyMCE 4 implementieren"
},
{
"name": "Issue #:",
"value": "6417"
}
],
"text": "There is a push webhook info and leads me to the workflow."
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "View in process",
"targets": [
{ "os": "default", "uri": "https://intranet.tqsoft.net/ror/workflowact/6417" }
]
}
]
}
【问题讨论】:
-
您能添加一些示例代码和 JSON 负载吗?
-
@MarcLaFleur-Microsoft 添加了一些 Json 示例,但页面中的任何示例,例如Microsoft Flow 批准,导致相同的错误 400。
-
@MarcLaFleur-Microsoft 当我在请求中检查 Params 时,无论我拥有的 json 代码是什么,它都是空的。
-
你如何将此有效负载发送到 webhook?
-
正如我前面提到的,我使用messagecardplayground.azurewebsites.net 进行测试并希望以后使用 C#.Net
标签: microsoft-teams asp.net-webhooks