#NEWLINE# def __init__( self , credentials ) : #NEWLINE# #INDENT# self . credentials = credentials #NEWLINE# self . oauth = OAuth1 ( credentials . consumer_key , self . consumer_secret , credentials . access_token , credentials . access_token_secret , signature_type = 'query' ) #NEWLINE# self . client = requests . Session ( ) #NEWLINE# self . client . auth = self . oauth #NEWLINE# self . client . params . update ( { #NEWLINE# #INDENT# 'userid' : credentials . user_id , #NEWLINE# #UNINDENT# } )