Merge pull request #162 from hansenrum/master
OAuth Verifier is now required for Authentication
This commit is contained in:
commit
4d7526efc1
1 changed files with 2 additions and 2 deletions
|
|
@ -303,10 +303,10 @@ class Twython(object):
|
||||||
|
|
||||||
return request_tokens
|
return request_tokens
|
||||||
|
|
||||||
def get_authorized_tokens(self):
|
def get_authorized_tokens(self, oauth_verifier):
|
||||||
"""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' : oauth_verifier})
|
||||||
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.')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue