I am using Twilio and I want to get the DateSent parameter of a message. When the message is initially sent it has null
values for both DateCreated
and DateSent
. So I pass a StatusCallback URL to receive any status updates on that message. However, I am able to get only the new statuses the message gets such as sent
, or delivered
and not the new date as an event. In the docs I couldn't find anything about this either (https://www.twilio.com/docs/sms/send-messages#monitor-the-status-of-your-message). What is the way to get this information without continuously polling the API?
0
votes
1 Answers
0
votes
The date created is included as part of the response from the API. If you find that is not the case can you please post example code. When the sms is actually sent you can pull the message resource using the api or sdk via the sid https://www.twilio.com/docs/sms/api/message-resource#fetch-a-message-resource