Permalink
Browse files

Support the twitter authenitcate model as well

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...
1 parent 196208b commit 28f4f5c571bc533c8508feb171ab14d51d691774 Michael Brunton-Spall committed with Sep 21, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 oauth.py
View
@@ -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.

0 comments on commit 28f4f5c

Please sign in to comment.