From 2d67e3f2f458dc3fd8fa755110f90b75f8567f37 Mon Sep 17 00:00:00 2001 From: Simon de la Rouviere Date: Thu, 4 Apr 2013 14:43:09 +0200 Subject: [PATCH] OAuth_verifier is now required when getting authorized tokens. Added it in. --- twython/twython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twython/twython.py b/twython/twython.py index 93c5c42..2540044 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -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.')