FreeSMS Library

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.

import FreeSMS




Usage: FreeSMS.sendSMS(recipientbody)

Send an SMS message from sender phone number to recipient phone number.

  • Credit cost: 100
  • Parameters:
    • recipientstring recipient's phone number (North America only).
    • bodystring the body of the message.
  • Returns:
    • 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"

Sample Code

import FreeSMS

result = FreeSMS.sendSMS('5555555555','Hello from Medium One!')