The following functions provide Twilio SMS messaging capability. If you do not have a Twilio account, you can use the FreeSMS Library instead, however it will use 100 Workflow Credits instead of 1.
To use this library and its functions, you must use the import line at the beginning of your Base Python code.
Twilio.sendSMS(sender, recipient, body, account_sid, auth_token)
Send an SMS message from sender phone number to recipient phone number.
Credit cost: 1
strsender's phone number (North America only)
strrecipient's phone number (North America only)
strthe body of the message
struser provided Twilio Account SID number
struser provided Twilio authentication token
- Sample Code:
import Twilio result = Twilio.sendSMS('5555555555','5555555555','Hello from Medium One!','YOUR_TWILIO_ACCOUNT_SID_HERE','YOUR_TWILIO_TOKEN_HERE')
Note: The user can unsubscribe from SMS by replying "stop" and re-subscribe by replying "start"