You are here

function oauth2_client_load in OAuth2 Client 7.2

Same name in this branch
  1. 7.2 oauth2_client.module \oauth2_client_load()
  2. 7.2 oauth2_client.api.php \oauth2_client_load()
Same name and namespace in other branches
  1. 8 oauth2_client.module \oauth2_client_load()
  2. 8 oauth2_client.api.php \oauth2_client_load()
  3. 7 oauth2_client.module \oauth2_client_load()

Load an oauth2 client.

Parameters

string $name: Name of the client.

Return value

OAuth2\Client Returns an OAuth2\Client object

Example: $test1 = oauth2_client_load('test1'); $access_token = $test1->getAccessToken();

2 calls to oauth2_client_load()
oauth2_client_revoke_token in ./oauth2_client.module
Revokes an access token on the server.
oauth2_client_test_callback in tests/oauth2_client_test.module
Trying test clients.

File

./oauth2_client.api.php, line 64
The programing interface provided by the module oauth2_client.

Code

function oauth2_client_load($name) {

  //Returns an OAuth2\Client object
}