#NEWLINE# def call( self , url = '/voice' , to = app . config [ 'TWILIO_CALLER_ID' ] , from_ = '+15558675309' , digits = None , extra_params = None ) : #NEWLINE# #INDENT# params = { #NEWLINE# #INDENT# 'CallSid' : 'CAtesting' , #NEWLINE# 'AccountSid' : app . config [ 'TWILIO_ACCOUNT_SID' ] , #NEWLINE# 'To' : to , #NEWLINE# 'From' : from_ , #NEWLINE# 'CallStatus' : 'ringing' , #NEWLINE# 'Direction' : 'inbound' , #NEWLINE# 'FromCity' : 'BROOKLYN' , #NEWLINE# 'FromState' : 'NY' , #NEWLINE# 'FromCountry' : 'US' , #NEWLINE# 'FromZip' : '55555' , #NEWLINE# #UNINDENT# } #NEWLINE# if digits : #NEWLINE# #INDENT# params [ 'Digits' ] = digits #NEWLINE# #UNINDENT# if extra_params : #NEWLINE# #INDENT# params = dict ( ( list ( params . items ( ) ) + list ( extra_params . items ( ) ) ) ) #NEWLINE# #UNINDENT# return self . app . post ( url , data = params )