Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Support the twitter authenitcate model as well
Browse files Browse the repository at this point in the history
Twitter supports a slightly different system using authenticate rather than authorise.  Use it by using get_authenticate_url instead of get_authorise_url
  • Loading branch information
Michael Brunton-Spall authored and mikeknapp committed Jan 28, 2011
1 parent 196208b commit 28f4f5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,11 @@ def get_authorization_url(self):
token = self._get_auth_token()
return "http://api.twitter.com/oauth/authorize?oauth_token=%s" % token

def get_authenticate_url(self):
"""Get Authentication URL."""
token = self._get_auth_token()
return "http://api.twitter.com/oauth/authenticate?oauth_token=%s" % token

def _lookup_user_info(self, access_token, access_secret):
"""Lookup User Info.
Expand Down

0 comments on commit 28f4f5c

Please sign in to comment.