【发布时间】:2017-08-26 23:24:59
【问题描述】:
我无法让 Zapier 的 webhook 发布真正的 JSON 数组。
我希望 webhook 发布数据是这样的:
{
"attachments": [
{
"color": "danger",
"fallback": "My fallback text is here",
"title": "My Title is here",
"text":" foo"
}
]
}
但我能得到的只是这个(注意缺少的“[”和“]”)。如何从 Zapier 的 webhook 中获取格式正确的 JSON 数组?
{
"attachments":
{
"color": "danger",
"text": "foo",
"fallback": "My fallback text is here",
"title": "My Title is here"
}
}
我的 Zapier Webhook 配置如下所示:
【问题讨论】:
标签: arrays json webhooks slack-api zapier