#NEWLINE# def make_call( self , conf , payload ) : #NEWLINE# #INDENT# requires_elements ( [ 'from' , 'to' ] , conf ) #NEWLINE# voice_start = parse_payload ( payload ) #NEWLINE# if ( 'debug' in conf ) : #NEWLINE# #INDENT# print ( voice_start ) #NEWLINE# #UNINDENT# call = { #NEWLINE# #INDENT# 'from' : conf [ 'from' ] , #NEWLINE# 'to' : retval [ 'to' ] , #NEWLINE# 'voice_start' : voice_start , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . query_api ( call , 'Calls' ) #NEWLINE# if ( 'debug' in conf ) : #NEWLINE# #INDENT# print ( s ( response ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( 'verbose' in conf ) : #NEWLINE# #INDENT# retval = json . loads ( s ( response ) ) #NEWLINE# print ( ( 'Made connection to ' + conf [ 'to' ] ) )