public function GoogleApiClientService::getAccessTokenByAuthCode in Google API PHP Client 8.2
Wrapper for Google_Client::fetchAccessTokenWithAuthCode.
Parameters
string $code: Code string from callback url.
Return value
array Token values array.
Deprecated
in google_api_client:8.x-2.0 and is removed from google_api_client:8.x-3.0. Use Google_Client/fetchAccessTokenWithAuthCode() Instead, you should just check googleClient object function.
File
- src/
Service/ GoogleApiClientService.php, line 130
Class
- GoogleApiClientService
- Class Google API Client Service.
Namespace
Drupal\google_api_client\ServiceCode
public function getAccessTokenByAuthCode($code) {
return $this->googleClient
->fetchAccessTokenWithAuthCode($code);
}