这 Calendly.com URL 有效吗?
Is this Calendly.com URL Valid?
我第一次使用 webhooks calendly.com. I would like to create a subscription as described 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 未找到错误。 url 甚至可以拥有他们所说的格式吗?
But using a url with the &
and everything in it gives a 404 not found error.
下面的URL部分就是&
字符之前的https://blah.foo/bar
部分。
curl --header "X-TOKEN: <your_token>" --data "url=https://blah.foo/bar&events[]=invitee.created" https://calendly.com/api/v1/hooks
events[]=invitee.created
部分是一个单独的参数和值。它不是 url
.
的一部分
请参阅日历文档中的 Create A Webhook Subscription 页面:
因此 URL 是运行您的 webhook 的站点;您不会将 events
parameter/value 发送回该站点,而是将 url
参数和 events
参数都发送到日历 API 端点在 https://calendly.com/api/v1/hooks
。 calendly 后端大概会调用 https://mywebsite.com/webhooks/invitee_created
或 https://blah.foo/bar
任何 url
你给它的东西——但没有 events
参数,它供 calendly 的内部使用。
我第一次使用 webhooks calendly.com. I would like to create a subscription as described 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 未找到错误。 url 甚至可以拥有他们所说的格式吗?
But using a url with the
&
and everything in it gives a 404 not found error.
下面的URL部分就是&
字符之前的https://blah.foo/bar
部分。
curl --header "X-TOKEN: <your_token>" --data "url=https://blah.foo/bar&events[]=invitee.created" https://calendly.com/api/v1/hooks
events[]=invitee.created
部分是一个单独的参数和值。它不是 url
.
请参阅日历文档中的 Create A Webhook Subscription 页面:
因此 URL 是运行您的 webhook 的站点;您不会将 events
parameter/value 发送回该站点,而是将 url
参数和 events
参数都发送到日历 API 端点在 https://calendly.com/api/v1/hooks
。 calendly 后端大概会调用 https://mywebsite.com/webhooks/invitee_created
或 https://blah.foo/bar
任何 url
你给它的东西——但没有 events
参数,它供 calendly 的内部使用。