#NEWLINE# def get_authorized_tokens( self , oauth_verifier ) : #NEWLINE# #INDENT# 'Returns a dict of authorized tokens after they go through the :class:`get_authentication_tokens` phase.\n\n        :param oauth_verifier: (required) The oauth_verifier (or a.k.a PIN for non web apps) retrieved from the callback url querystring\n        :rtype: dict\n\n        ' #NEWLINE# if ( self . oauth_version != 1 ) : #NEWLINE# #INDENT# raise TwythonError ( 'This method can only be called when your OAuth version is 1.0.' ) #NEWLINE# #UNINDENT# response = self . client . get ( self . access_token_url , params = { #NEWLINE# #INDENT# 'oauth_verifier' : oauth_verifier , #NEWLINE# #UNINDENT# } ) #NEWLINE# authorized_tokens = dict ( parse_qsl ( response . content . decode ( 'utf-8' ) ) ) #NEWLINE# if ( not oauth_verifier ) : #NEWLINE# #INDENT# raise TwythonError ( 'Unable to decode authorized tokens.' ) #NEWLINE# #UNINDENT# return authorized_tokens