You are here

function oauth2_client_get_token in OAuth2 Client 7.2

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

Returns the access token of the oauth2_client for the given $client_id.

File

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

Code

function oauth2_client_get_token($client_id) {
  return OAuth2\Client::loadToken($client_id);
}