#NEWLINE# def request( self , method , url , **kwargs ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'X-NSoT-Email' : self . user , #NEWLINE# #UNINDENT# } #NEWLINE# if ( method . lower ( ) in ( 'put' , 'post' ) ) : #NEWLINE# #INDENT# headers [ 'Content-type' ] = 'application/json' #NEWLINE# #UNINDENT# return requests . request ( method , ( kwargs . base_url + url ) , headers = headers , ** kwargs )