This commit is contained in:
Simon de la Rouviere 2013-04-04 13:19:28 -07:00
commit cb60e7739f

View file

@ -306,7 +306,7 @@ class Twython(object):
def get_authorized_tokens(self): def get_authorized_tokens(self):
"""Returns authorized tokens after they go through the auth_url phase. """Returns authorized tokens after they go through the auth_url phase.
""" """
response = self.client.get(self.access_token_url) response = self.client.get(self.access_token_url,params={'oauth_verifier':self.oauth_token_secret})
authorized_tokens = dict(parse_qsl(response.content)) authorized_tokens = dict(parse_qsl(response.content))
if not authorized_tokens: if not authorized_tokens:
raise TwythonError('Unable to decode authorized tokens.') raise TwythonError('Unable to decode authorized tokens.')