You are here

public function GoogleAnalyticsReportsApiFeed::finishAuthentication in Google Analytics Reports 8.3

Complete the authentication process.

We got here after being redirected from a successful authorization grant. Fetch the access token.

Parameters

string $client_id: Client id.

string $client_secret: Client secret.

string $redirect_uri: Redirect uri.

File

google_analytics_reports_api/src/GoogleAnalyticsReportsApiFeed.php, line 333

Class

GoogleAnalyticsReportsApiFeed
Class GoogleAnalyticsReportsApiFeed.

Namespace

Drupal\google_analytics_reports_api

Code

public function finishAuthentication($client_id, $client_secret, $redirect_uri) {
  $this
    ->fetchToken($client_id, $client_secret, $redirect_uri);
}