【发布时间】:2017-02-02 15:01:54
【问题描述】:
我是第一次使用 calendly.com 的 webhook。我想按照here 的描述创建订阅。当我开始这样做时
curl --header "X-TOKEN: <your_token>" --data "url=https://blah.foo/bar&events[]=invitee.created" https://calendly.com/api/v1/hooks
我担心url 的格式无效。我尝试用? 替换&,就像这里一样
curl --header "X-TOKEN: <your_token>" --data "url=https://blah.foo/bar?events[]=invitee.created" https://calendly.com/api/v1/hooks
但我收到此错误
{"events":{"events":["can't be blank]}}
同样,我尝试将& 及其后面的所有内容留空,并给出与上述相同的错误。
但是使用带有 & 的 url 以及其中的所有内容都会产生 404 not found 错误。一个 url 甚至可以有他们所说的格式吗?
【问题讨论】:
标签: url curl webhooks calendly