Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
6150d127
Commit
6150d127
authored
Aug 10, 2009
by
Josh Roesslein
Browse files
Return access token when calling get_access_token()
parent
37129ca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/auth.py
View file @
6150d127
...
@@ -81,6 +81,7 @@ class OAuthHandler(AuthHandler):
...
@@ -81,6 +81,7 @@ class OAuthHandler(AuthHandler):
# send request
# send request
resp
=
urlopen
(
Request
(
self
.
ACCESS_TOKEN_URL
,
headers
=
request
.
to_header
()))
resp
=
urlopen
(
Request
(
self
.
ACCESS_TOKEN_URL
,
headers
=
request
.
to_header
()))
self
.
access_token
=
oauth
.
OAuthToken
.
from_string
(
resp
.
read
())
self
.
access_token
=
oauth
.
OAuthToken
.
from_string
(
resp
.
read
())
return
self
.
access_token
except
Exception
,
e
:
except
Exception
,
e
:
raise
TweepError
(
e
)
raise
TweepError
(
e
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment