public function GoogleAnalyticsReportsApiFeed::refreshToken in Google Analytics Reports 8.3
Fetches a fresh access token with the given refresh token.
Parameters
string $client_id: Client id.
string $client_secret: Client secret.
string $refresh_token: Refresh token.
File
- google_analytics_reports_api/
src/ GoogleAnalyticsReportsApiFeed.php, line 364
Class
- GoogleAnalyticsReportsApiFeed
- Class GoogleAnalyticsReportsApiFeed.
Namespace
Drupal\google_analytics_reports_apiCode
public function refreshToken($client_id, $client_secret, $refresh_token) {
$this->refreshToken = $refresh_token;
$this
->fetchToken($client_id, $client_secret, '', $refresh_token);
}