From: Ben Darnell Date: Sat, 1 Jun 2013 02:27:02 +0000 (-0400) Subject: Get the current user's twitter information with /account/verify_credentials. X-Git-Tag: v3.1.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85ff9eb191d5ab414fc0ba4fcef010a846fc45db;p=thirdparty%2Ftornado.git Get the current user's twitter information with /account/verify_credentials. This is more robust against potentially-changing screen names. Closes #51. --- diff --git a/tornado/auth.py b/tornado/auth.py index 773d9e482..42400e199 100644 --- a/tornado/auth.py +++ b/tornado/auth.py @@ -723,7 +723,7 @@ class TwitterMixin(OAuthMixin): @gen.coroutine def _oauth_get_user_future(self, access_token): user = yield self.twitter_request( - "/users/show/" + escape.native_str(access_token["screen_name"]), + "/account/verify_credentials", access_token=access_token) if user: user["username"] = user["screen_name"]