Permalink
Browse files

updated README examples

  • Loading branch information...
1 parent 2f8a84d commit 19c024c64c5e4db5034d9c5cf1aaf3feaa43b2f0 @dustinwhittle dustinwhittle committed with Yahoo! Oct 13, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 README.markdown
View
@@ -106,13 +106,13 @@ Examples
# Fetch request token
request_token = oauthapp.get_request_token(CALLBACK_URL)
- verifier = self.request.get('oauth_verifier') # must fetch oauth_verifier from request
-
# Redirect user to authorization url
- redirect_url = oauthapp.get_authorization_url(request_token, verifier)
+ redirect_url = oauthapp.get_authorization_url(request_token)
# Exchange request token for authorized access token
- access_token = oauthapp.get_access_token(request_token)
+ verifier = self.request.get('oauth_verifier') # must fetch oauth_verifier from request
+
+ access_token = oauthapp.get_access_token(request_token, verifier)
# update access token
oauthapp.token = access_token

0 comments on commit 19c024c

Please sign in to comment.