public function GoogleAnalyticsCounterFeed::refreshToken in Google Analytics Counter 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_counter_oauth2.lib.inc, line 190 - Provides the Google Analytics Counter Feed object type and associated methods. Most of the Google Analytics authentication process is taken over from http://drupal.org/project/google_analytics_reports because all we need here is its Google Analytics…
Class
- GoogleAnalyticsCounterFeed
- GoogleAnalyticsCounterFeed 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->refresh_token = $refresh_token;
$this
->fetchToken($client_id, $client_secret, '', $refresh_token);
}