<s> from openduty import settings <EOL> __author__ = '<STR_LIT>' <EOL> from twilio . rest import TwilioRestClient <EOL> class TwilioCallNotifier : <EOL> def __init__ ( self , config ) : <EOL> self . __config = config <EOL> def notify ( self , notification ) : <EOL> client = TwilioRestClient ( self . __config [ '<STR_LIT>' ] , self . __config [ '<STR_LIT>' ] ) <EOL> try : <EOL> client . calls . create ( <EOL> url = settings . BASE_URL + "<STR_LIT>" % ( notification . id , notification . user_to_notify . id ) , <EOL> method = "<STR_LIT:GET>" , <EOL> to = notification . user_to_notify . profile . phone_number , <EOL> from_ = self . __config [ '<STR_LIT>' ] ) <EOL> print '<STR_LIT>' <EOL> except : <EOL> print '<STR_LIT>' </s>
