You are here

public function GoogleAnalyticsReportsApiFeed::refreshToken in Google Analytics Reports 7.3

Fetches a fresh access token with the given refresh token.

Parameters

String $client_id:

String $client_secret:

string $refresh_token:

File

google_analytics_reports_api/google_analytics_reports_api.lib.inc, line 192
Provides the Google Analytics Reports API Feed object type and associated methods.

Class

GoogleAnalyticsReportsApiFeed
GoogleAnalyticsReportsApiFeed class to authorize access to and request data from the Google Analytics Core Reporting API.

Code

public function refreshToken($client_id, $client_secret, $refresh_token) {
  $this->refreshToken = $refresh_token;
  $this
    ->fetchToken($client_id, $client_secret, '', $refresh_token);
}