Skip to content

Commit 45a3e9f

Browse files
committed
Merge branch 'master' of github.com:simplegeo/python-oauth2
2 parents 7558ec0 + 970711b commit 45a3e9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ can be easily translated to a web application.
113113
accepted = 'n'
114114
while accepted.lower() == 'n':
115115
accepted = raw_input('Have you authorized me? (y/n) ')
116+
oauth_verifier = raw_input('What is the PIN? ')
116117

117118
# Step 3: Once the consumer has redirected the user back to the oauth_callback
118119
# 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.
123124
request_token['oauth_token_secret'])
124125
client = oauth.Client(consumer, token)
125126

126-
resp, content = client.request(access_token_url, "POST")
127+
resp, content = client.request(access_token_url, "POST",
128+
body="oauth_verifier=%s" % oauth_verifier)
127129
access_token = dict(urlparse.parse_qsl(content))
128130

129131
print "Access Token:"

0 commit comments

Comments
 (0)