]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Updating base Twitter url
authorJoseph Bowman <bowman.joseph@gmail.com>
Sat, 24 Apr 2010 02:26:49 +0000 (22:26 -0400)
committerBen Darnell <bdarnell@beaker.local>
Sun, 25 Apr 2010 19:27:18 +0000 (12:27 -0700)
tornado/auth.py

index dfde6af92a08ac0fa19b3623d8d83ef1aaa33b7c..e17c89a237e8903f2556ada16b99f80a75a649c0 100644 (file)
@@ -364,10 +364,10 @@ class TwitterMixin(OAuthMixin):
     the user; it is required to make requests on behalf of the user later
     with twitter_request().
     """
-    _OAUTH_REQUEST_TOKEN_URL = "http://twitter.com/oauth/request_token"
-    _OAUTH_ACCESS_TOKEN_URL = "http://twitter.com/oauth/access_token"
-    _OAUTH_AUTHORIZE_URL = "http://twitter.com/oauth/authorize"
-    _OAUTH_AUTHENTICATE_URL = "http://twitter.com/oauth/authenticate"
+    _OAUTH_REQUEST_TOKEN_URL = "http://api.twitter.com/oauth/request_token"
+    _OAUTH_ACCESS_TOKEN_URL = "http://api.twitter.com/oauth/access_token"
+    _OAUTH_AUTHORIZE_URL = "http://api.twitter.com/oauth/authorize"
+    _OAUTH_AUTHENTICATE_URL = "http://api.twitter.com/oauth/authenticate"
     _OAUTH_NO_CALLBACKS = True
 
     def authenticate_redirect(self):
@@ -419,7 +419,7 @@ class TwitterMixin(OAuthMixin):
 
         """
         # Add the OAuth resource request signature if we have credentials
-        url = "http://twitter.com" + path + ".json"
+        url = "http://api.twitter.com/1" + path + ".json"
         if access_token:
             all_args = {}
             all_args.update(args)