Return access token when calling get_access_token()
authorJosh Roesslein <jroesslein@gmail.com>
Mon, 10 Aug 2009 18:12:57 +0000 (13:12 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Mon, 10 Aug 2009 18:12:57 +0000 (13:12 -0500)
tweepy/auth.py

index 63ce3514b6042994a167fcd6ae8f23fb388524b5..4da0ce46b98dd8687ce937ca4d1b52c782bdc8ff 100644 (file)
@@ -81,6 +81,7 @@ class OAuthHandler(AuthHandler):
       # send request
       resp = urlopen(Request(self.ACCESS_TOKEN_URL, headers=request.to_header()))
       self.access_token = oauth.OAuthToken.from_string(resp.read())
+      return self.access_token
     except Exception, e:
       raise TweepError(e)