The following functions provide limited access to Free SMS messaging capability, through Twilio. If you have your own Twilio credentials, use the Twilio Library so it consumes less of your Medium One Workflow Credits.
To use this library and its functions, you must use the import line at the beginning of your Base Python code.
Usage: FreeSMS.sendSMS(recipient, body)
Send an SMS message from sender phone number to recipient phone number.
- Credit cost: 100
stringrecipient's phone number (North America only).
stringthe body of the message.
- the result is None if all goes well, or an error message from the service
Note: The user can unsubscribe from SMS by replying "stop" and re-subscribe by replying "start"
import FreeSMS result = FreeSMS.sendSMS('5555555555','Hello from Medium One!')