OAuth_verifier is now required when getting authorized tokens. Added it in.

This commit is contained in:
Simon de la Rouviere 2013-04-04 14:43:09 +02:00
parent a6afb2cf5c
commit 2d67e3f2f4

View file

@ -298,7 +298,7 @@ class Twython(object):
def get_authorized_tokens(self):
"""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))
if not authorized_tokens:
raise TwythonError('Unable to decode authorized tokens.')