public function GoogleAnalyticsCounterFeed::beginAuthentication in Google Analytics Counter 8.3
Redirect to Google authentication page.
Begin authentication by allowing the user to grant/deny access to the Google account.
Parameters
string $client_id: Client ID for Web application from Google API Console.
string $redirect_uri: Callback uri.
Return value
\Symfony\Component\HttpFoundation\Response A redirect header.
File
- src/
GoogleAnalyticsCounterFeed.php, line 232
Class
- GoogleAnalyticsCounterFeed
- Authorize access and request data from Google Analytics Core Reporting API.
Namespace
Drupal\google_analytics_counterCode
public function beginAuthentication($client_id, $redirect_uri) {
$response = new RedirectResponse($this
->createAuthUrl($client_id, $redirect_uri));
return $response
->send();
}