/*
* Set to true if you want to make the class dump
* debug information to PHP error log
*/$client->debug = true;

/*
* Set to true if you want to make the class also dump
* debug output of the HTTP requests it sends.
*/$client->debug_http = false;

/* OAuth server type name
* Setting this variable to one of the built-in supported OAuth servers
* will make the class automatically set all parameters specific of that
* type of server.
*
* Currently, built-in supported types are: Facebook, github, Google,
* Microsoft, Foursquare, Twitter and Yahoo.
*
* Send e-mail to mlemos at acm.org if you would like the class to have
* built-in support to access other OAuth servers.
*
* Set to an empty string to use another type of OAuth server. Check the
* documentation to learn how to set other parameters to configure the
* class to access that server
*/$client->server = '';

/* OAuth authentication URL identifier
* This should be the current page URL without any request parameters
* used by OAuth, like state and code, error, denied, etc..
*/$client->redirect_uri = 'http://'.$_SERVER['HTTP_HOST'].dirname(strtok($_SERVER['REQUEST_URI'],'?')).'/test_oauth_client.php';

/* OAuth client identifier
* Set this to values defined by the OAuth server for your application
*/$client->client_id = '';

/* OAuth client secret
* Set this to values defined by the OAuth server for your application
*/$client->client_secret = '';

/* OAuth client permissions
* Set this to the name of the permissions you need to access the
* application API
*/$client->scope = '';

/* Process the OAuth server interactions */if(($success = $client->Initialize()))
{/*
* Call the Process function to make the class dialog with the OAuth
* server. If you previously have retrieved the access token and set
* the respective class variables manually, you may skip this call and
* use the CallAPI function directly.
*/$success = $client->Process();// Make sure the access token was successfully obtained before making
// API calls
/*
* if(strlen($client->access_token))
* {
* $success = $client->CallAPI();
* }
*/