Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: joestump/python-oauth2
...
head fork: edsu/python-oauth2
compare: master
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 18, 2010
@edsu edsu added oauth_verifier parameter which twitter wants or else example fa…
…ils with 401 Invalid OAuth verifier.
683605a
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
4 README.md
@@ -113,6 +113,7 @@ can be easily translated to a web application.
accepted = 'n'
while accepted.lower() == 'n':
accepted = raw_input('Have you authorized me? (y/n) ')
+ oauth_verifier = raw_input('What is the PIN? ')
# Step 3: Once the consumer has redirected the user back to the oauth_callback
# URL you can request the access token the user has approved. You use the
@@ -123,7 +124,8 @@ can be easily translated to a web application.
request_token['oauth_token_secret'])
client = oauth.Client(consumer, token)
- resp, content = client.request(access_token_url, "POST")
+ resp, content = client.request(access_token_url, "POST",
+ body="oauth_verifier=%s" % oauth_verifier)
access_token = dict(urlparse.parse_qsl(content))
print "Access Token:"

No commit comments for this range

Something went wrong with that request. Please try again.