Skip to content

Commit

Permalink
Updating base Twitter url
Browse files Browse the repository at this point in the history
  • Loading branch information
joerussbowman authored and Ben Darnell committed Apr 25, 2010
1 parent 0fcef4e commit bbdf207
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tornado/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,10 @@ def _on_auth(self, user):
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):
Expand Down Expand Up @@ -419,7 +419,7 @@ def _on_post(self, new_entry):
"""
# 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)
Expand Down

0 comments on commit bbdf207

Please sign in to comment.