issue #6 creato modifica per progetto
This commit is contained in:
@@ -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
|
||||
]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user