def get_access_token(self, verifier=None):
try:<EOL><INDENT>url = self._get_oauth_url('<STR_LIT>')<EOL>self.oauth = OAuth1Session(self.consumer_key,<EOL>client_secret=self.consumer_secret,<EOL>resource_owner_key=self.request_token['<STR_LIT>'],<EOL>resource_owner_secret=self.request_token['<STR_LIT>'],<EOL>verifier=verifier, callback_uri=self.callback)<EOL>resp = self.oauth.fetch_access_token(url)<EOL>self.access_token = resp['<STR_LIT>']<EOL>self.access_token_secret = resp['<STR_LIT>']<EOL>return self.access_token, self.access_token_secret<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise TweepError(e)<EOL><DEDENT>
After user has authorized the request token, get access token
with user supplied verifier.