将Twilio流执行触发到联系通道地址,而另一个执行到同一号码仍处于活动状态

发布于 2025-01-30 05:38:42 字数 1377 浏览 3 评论 0原文

在其他执行仍在进行的同时,将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无所谓啦 2025-02-06 05:38:42

使用执行资源的V2,它将返回409响应。

v1和v2

Use v2 of the Executions resource, it will return a 409 response.

Differences Between v1 and v2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文