We have created a Python object that sends SMS/text messages using Twilio, and it is working (mostly - see below) .
Code:
import os
from twilio.rest import Client
def SendSMS(FromNumber,ToNumber,MessageText):
account_sid = "*****************"
auth_token = "****************""
client = Client(account_sid, auth_token)
message = client.messages
.create(
body=MessageText,
from_=FromNumber,
to=ToNumber
)
return message.sid
When we call this from Universe, the first time it runs properly. If we then call it again immediately, we get the following message on-screen in Universe, and the message does not send:

Can anyone tell us what we are doing incorrectly and/or how we can fix this?
Frank Hanshaw
Circle Commerce
