Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
updated oauth example to use oauth1.0a
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinwhittle authored and Yahoo! committed Oct 13, 2009
1 parent fabd065 commit 9a1eb56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Expand Up @@ -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;
Expand Down

0 comments on commit 9a1eb56

Please sign in to comment.