public function GoogleAnalyticsCounterFeed::refreshToken in Google Analytics Counter 8.3
Fetches a fresh access token with the given refresh token.
Parameters
string $client_id: Client ID for Web application from Google API Console.
string $client_secret: Client secret for Web application from Google API Console.
string $refresh_token: Refresh token for Web application from Google API Console.
File
- src/
GoogleAnalyticsCounterFeed.php, line 247
Class
- GoogleAnalyticsCounterFeed
- Authorize access and request data from Google Analytics Core Reporting API.
Namespace
Drupal\google_analytics_counterCode
public function refreshToken($client_id, $client_secret, $refresh_token) {
$this->refreshToken = $refresh_token;
$this
->fetchToken($client_id, $client_secret, '', $refresh_token);
}