From: Joseph Bowman Date: Sat, 24 Apr 2010 02:26:49 +0000 (-0400) Subject: Updating base Twitter url X-Git-Tag: v1.0.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbdf207637e4b035d0882619f642a3ae32a04fca;p=thirdparty%2Ftornado.git Updating base Twitter url --- 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)