public function GoogleApiClientService::getAccessTokenWithRefreshToken in Google API PHP Client 8.2
Wrapper for Google_Client::fetchAccessTokenWithRefreshToken.
Return value
array|bool token array or false.
Deprecated
in google_api_client:8.x-2.0 and is removed from google_api_client:8.x-3.0. Use Google_Client/fetchAccessTokenWithRefreshToken() Instead, you should just check googleClient object function.
File
- src/
Service/ GoogleApiClientService.php, line 145
Class
- GoogleApiClientService
- Class Google API Client Service.
Namespace
Drupal\google_api_client\ServiceCode
public function getAccessTokenWithRefreshToken() {
if ($access_token = $this->googleApiClient
->getAccessToken() && isset($access_token['refresh_token'])) {
return $this->googleClient
->fetchAccessTokenWithRefreshToken($access_token['refresh_token']);
}
return FALSE;
}