FreeSMS Library

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(recipientbody)

Send an SMS message to recipient phone number.

Credit cost: 100

Parameters

  • recipientstr recipient's phone number (North America only)
  • bodystr 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