是否有消息时间/日期的 TwiML 请求参数

问题描述 投票:0回答:1

根据文档,当 Twilio 收到来自 Twilio 号码的消息时,它会向为该号码配置的消息 URL 发出同步 HTTP 请求。 Twilio 发送 https://www.twilio.com/docs/api/twiml/sms/twilio_request

中列出的参数

是否也可以将发送和/或接收的日期/时间传递到配置的 URL,如果可以,如何实现?

twilio twilio-twiml twilio-php
1个回答
0
投票

日期和时间按此处理并附加到消息资源

{
   "account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
   "api_version": "2010-04-01",
   "body": "Hey test message",
   "error_code": null,
   "error_message": null,
   "num_segments": "1",
   "num_media": "0",
   "date_created": "Mon, 16 Aug 2010 03:45:01 +0000",
   "date_sent": "Mon, 16 Aug 2010 03:45:03 +0000",
   "date_updated": "Mon, 16 Aug 2010 03:45:03 +0000",
   "direction": "outbound-api",
   "from": "+14158141829",
   "price": "-0.02000",
   "sid": "MMXXXXXXXXXXXXXXXXXXXXXXXXX",
   "status": "sent",
   "to": "+15558675309",
   "uri": "/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/MMXXXXXXXXXXXXXXXXXXXXXXXXXXXec.json"
}
© www.soinside.com 2019 - 2024. All rights reserved.