尝试与发送传出 webhook 的 Slack 集成,application/x-www-form-urlencoded
而不是像预期的那样application/json
。有什么方法可以让 Azure Fucntions 接受处理application/x-www-form-urlencoded
数据的 webhook (C#)?
问问题
1546 次
2 回答
1
这篇文章帮助了我。Azure Functions 可以支持 3 种类型的 webhook
- 通用 JSON
- GitHub
- 松弛
functions.json
负责绑定的文件可以直接操作
{
"bindings": [
{
"type": "httpTrigger",
"direction": "in",
"webHookType": "genericJson",
"name": "req"
},
{
"type": "http",
"direction": "out",
"name": "res"
}
],
"disabled": false
}
或通过用户界面
于 2016-04-30T00:55:19.577 回答