1<?php 2include('common.inc.php'); 3 4try { 5 $provider = new OAuthProvider($params); 6 7 $provider->your_own_member = "this is passed to every callback"; 8 9 $provider->consumerHandler('lookupConsumer'); 10 11 $provider->timestampNonceHandler('timestampNonceChecker'); 12 13 $provider->tokenHandler('tokenHandler'); 14 15 $provider->checkOAuthRequest("http://localhost/a_private_api.php", PHP_SAPI=="cli" ? OAUTH_HTTP_METHOD_GET : NULL); 16 17} catch (OAuthException $E) { 18 echo OAuthProvider::reportProblem($E); 19} 20 21?> 22