From 7468bda94f3ddbaff88ea53b35c578576a61fccf Mon Sep 17 00:00:00 2001 From: Dick Brouwer Date: Mon, 5 Mar 2012 13:16:38 -0800 Subject: [PATCH] Fixed converting request token to an access token step --- twython/twython.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/twython/twython.py b/twython/twython.py index 6d38ac3..174ebab 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -244,13 +244,13 @@ class Twython(object): return request_tokens - def get_authorized_tokens(self): + def get_authorized_tokens(self, oauth_verifier): """ get_authorized_tokens - Returns authorized tokens after they go through the auth_url phase. + Returns authorized tokens and basic user info after they go through the auth_url phase. """ - resp, content = self.client.request(self.access_token_url, "GET") + resp, content = self.client.request(self.access_token_url, "POST", body="oauth_verifier=%s" % oauth_verifier) return dict(parse_qsl(content)) # ------------------------------------------------------------------------------------------------------------------------