The following functions provide limited access to free SMS messaging through Twilio. If you have your own Twilio credentials, use the Twilio Library to consume fewer Medium One Workflow Credits.
Import
To use this library and its functions, you must use the import line at the beginning of your Base Python code.
import FreeSMS
Send SMS
FreeSMS.sendSMS(recipient, body)
Send an SMS message to recipient phone number.
Credit cost: 100
Parameters
- recipient:
str
recipient's phone number (North America only) - body:
str
the body of the message
Return Value
None
Example
- Sample Code:
-
import FreeSMS result = FreeSMS.sendSMS('5555555555','Hello from Medium One!')
-
Note: The user can unsubscribe from SMS by replying "stop" and re-subscribe by replying "start"
Exceptions
- Exception