#NEWLINE# def get_oauth_session( self ) : #NEWLINE# #INDENT# client = BackendApplicationClient ( self . consumer_key ) #NEWLINE# token = None #NEWLINE# if self . access_token : #NEWLINE# #INDENT# token = { #NEWLINE# #INDENT# 'access_token' : self . access_token , #NEWLINE# 'token_type' : self . token_type , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return self . configure_oauth_session ( OAuth2Session ( client = client , token = self ) )