issue #6 creato modifica per progetto

This commit is contained in:
2023-10-27 13:35:55 +02:00
parent cd5b57e909
commit eef847e302
5 changed files with 82 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ class AnagraficaController extends Controller
{
// GOOGLE CONTACTS PART
private $google_client;
// private $google_client;
/* public function getToken()
{
@@ -45,7 +45,7 @@ class AnagraficaController extends Controller
public function getToken()
{
$configJson =storage_path('app/google-calendar/service_key.json');
//$configJson =storage_path('app/google-calendar/people.json');
// $configJson =storage_path('app/google-calendar/people.json');
// define an application name
$applicationName = 'gestionale-di-famiglia';
@@ -59,9 +59,11 @@ class AnagraficaController extends Controller
$client->setScopes(
[
/*\Google\Service\Oauth2::USERINFO_PROFILE,
\Google\Service\Oauth2::USERINFO_EMAIL,
\Google\Service\Oauth2::OPENID,*/
/*
\Google\Service\Oauth2::USERINFO_PROFILE,
\Google\Service\Oauth2::USERINFO_EMAIL,
\Google\Service\Oauth2::OPENID,
*/
\Google\Service\PeopleService::CONTACTS // allows reading of google drive metadata
]
);