#NEWLINE# def _init_credentials( self , oauth_token , oauth_token_secret ) : #NEWLINE# #INDENT# 'Depending on the state passed in, get self._oauth up and running' #NEWLINE# if ( oauth_token and oauth_token_secret ) : #NEWLINE# #INDENT# if self . verified : #NEWLINE# #INDENT# self . _init_oauth ( oauth_token , oauth_token_secret ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . oauth_token = oauth_token #NEWLINE# self . oauth_token_secret = oauth_token_secret #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# oauth = OAuth1 ( self . consumer_key , client_secret = self . consumer_secret , callback_uri = self . callback_uri , rsa_key = self . rsa_key , signature_method = self . _signature_method ) #NEWLINE# url = ( self . base_url + REQUEST_TOKEN_URL ) #NEWLINE# response = requests . post ( url = url , auth = oauth , cert = self . client_cert ) #NEWLINE# self . _process_oauth_response ( response )