Permalink
Browse files

updated oauth example to use oauth1.0a

  • Loading branch information...
1 parent fabd065 commit 9a1eb560b0df8f458ab38abb3271730f26cb5909 @dustinwhittle dustinwhittle committed with Yahoo! Oct 13, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.markdown
View
@@ -131,13 +131,13 @@ See the bundled sample code in examples/yql/delicious.php.
$oauthapp = new YahooOAuthApplication($CONSUMER_KEY, $CONSUMER_SECRET, $APPLICATION_ID, $CALLBACK_URL);
# Fetch request token
- $request_token = $oauthapp->getRequestToken();
+ $request_token = $oauthapp->getRequestToken($CALLBACK_URL);
# Redirect user to authorization url
- $redirect_url = $oauthapp->getAuthorizationUrl($request_token, $CALLBACK_URL);
+ $redirect_url = $oauthapp->getAuthorizationUrl($request_token);
# Exchange request token for authorized access token
- $access_token = $oauthapp->getAccessToken($request_token);
+ $access_token = $oauthapp->getAccessToken($request_token, $_REQUEST['oauth_verifier']);
# update access token
$oauthapp->token = $access_token;

0 comments on commit 9a1eb56

Please sign in to comment.