我需要验证一个来自Integromat的Web钩子连接
GoToConnect网络钩子注册(又名NotificationChannel )需要来自OPTIONS请求的响应来验证它是否允许POST请求。
因此,我使用Integromat编写Web钩子定义,如下所示:
api.imljson Webhook -{
"output": "{{body}}",
"verification": {
//"condition": "{{ if(headers.method == 'OPTIONS', true, false) }}",
"condition": true,
"respond": {
"status": "200",
//"type": "urlencoded",
"body": {},
"headers": {}
}
}
}attach.imljson Webhook -{
"url": "https://api.jive.com/notification-channel/v1/channels/{{parameters.channelNickname}}",
"method": "POST",
"body": {
"channelType": "Webhook",
"webhookChannelData": {
"webhook": {
"url": "{{webhook.url}}"
}
},
//"channelLifetime": "{{ifempty(parameters.channelLifetime, 15552000)}}"
"channelLifetime": "{{ parameters.channelLifetime }}"
},
"response": {
"data": {
"externalHookId": "{{body.channelId}}",
"externalHookNickname": "{{body.channelNickname}}",
"channelId": "{{body.channelId}}",
"channelNickname": "{{body.channelNickname}}",
"channelLifetime": "{{body.channelLifetime}}",
"doNotDisturbAware": "{{body.doNotDisturbAware}}"
}
}
}dettach.imljson Webhook -{
"url": "https://api.jive.com/notification-channel/v1/channels/{{ webhook.channelNickname }}/{{ webhook.channelId }}",
"method": "DELETE"
}但它没有像预期的那样起作用

是否有正确的方法来完成此选项请求的验证?
https://stackoverflow.com/questions/69868098
复制相似问题