From bbdf207637e4b035d0882619f642a3ae32a04fca Mon Sep 17 00:00:00 2001 From: Joseph Bowman Date: Fri, 23 Apr 2010 22:26:49 -0400 Subject: [PATCH] Updating base Twitter url --- tornado/auth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tornado/auth.py b/tornado/auth.py index dfde6af92..e17c89a23 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -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) -- 2.47.2