将Twilio流执行触发到联系通道地址,而另一个执行到同一号码仍处于活动状态
在其他执行仍在进行的同时,将Twilio流执行触发到同一数字,将发送同一执行ID的响应,而没有任何迹象表明此执行不是新执行:
这是该执行执行:
{
status: 'active',
date_updated: null,
contact_channel_address: 'xxxxx',
account_sid: 'xxxx',
url: 'https://studio.twilio.com/v1/Flows/xxxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c',
context: {},
sid: 'FN519a25c6d932799cb8d1dc5bf78b489c',
date_created: '2022-05-18T11:53:31Z',
contact_sid: 'xxx',
flow_sid: 'xxx',
links: {
steps: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Steps',
execution_context: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Context'
}
这是执行第二个触发器的响应:
{
status: 'active',
date_updated: null,
contact_channel_address: 'xxx',
account_sid: 'xxx',
url: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c',
context: {},
sid: 'FN519a25c6d932799cb8d1dc5bf78b489c',
date_created: '2022-05-18T11:53:32Z',
contact_sid: 'xxx',
flow_sid: 'xxx',
links: {
steps: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Steps',
execution_context: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Context'
}
}
Triggering a twilio flow execution to the same number while another execution is still in progress will send a response of the same execution id without any indication that this execution is not a new execution:
This is the response of the first trigger of the execution:
{
status: 'active',
date_updated: null,
contact_channel_address: 'xxxxx',
account_sid: 'xxxx',
url: 'https://studio.twilio.com/v1/Flows/xxxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c',
context: {},
sid: 'FN519a25c6d932799cb8d1dc5bf78b489c',
date_created: '2022-05-18T11:53:31Z',
contact_sid: 'xxx',
flow_sid: 'xxx',
links: {
steps: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Steps',
execution_context: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Context'
}
This is the response of the second trigger of the execution:
{
status: 'active',
date_updated: null,
contact_channel_address: 'xxx',
account_sid: 'xxx',
url: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c',
context: {},
sid: 'FN519a25c6d932799cb8d1dc5bf78b489c',
date_created: '2022-05-18T11:53:32Z',
contact_sid: 'xxx',
flow_sid: 'xxx',
links: {
steps: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Steps',
execution_context: 'https://studio.twilio.com/v1/Flows/xxx/Executions/FN519a25c6d932799cb8d1dc5bf78b489c/Context'
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用执行资源的V2,它将返回409响应。
v1和v2
Use v2 of the Executions resource, it will return a 409 response.
Differences Between v1 and v2