Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.555 kb
import settings as s
from datastore import SmsMessage
class NoSuchProvider:
pass
if s.SMS_PROVIDER == 'twilio':
import sms_twilio as sms
elif s.SMS_PROVIDER == 'android':
import sms_android as sms
else:
raise NoSuchProvider
def sendSms(phone, message):
sms_message = SmsMessage(phone_number=phone.number,
message=message,
provider=s.SMS_PROVIDER,
direction='outgoing',
status='queued')
sms.sendSms(sms_message)
Jump to Line
Something went wrong with that request. Please try again.