I'm running a REDCap study with Twilio to text people with survey links. I sent about 50 surveys out and I wanted to find out which numbers cannot be delivered.
First issue I have: the messages sent cannot be found in the message log
But I can find the records under Insights
In order to track the delivery status, I wanted to get something like this
I tired the Python code on Twilio's website here , copied below
# Download the helper library from https://www.twilio.com/docs/python/install
import os
from twilio.rest import Client
# Find your Account SID and Auth Token at twilio.com/console
# and set the environment variables. See http://twil.io/secure
account_sid = os.environ['TWILIO_ACCOUNT_SID']
auth_token = os.environ['TWILIO_AUTH_TOKEN']
client = Client(account_sid, auth_token)
messages = client.messages.list(limit=20)
for record in messages:
print(record.sid)
And "messages" returned an empty list (no errors). I'm not sure whether the empty message log has anything to do with this.
Any help is appreciated!