access user calendar with service account
I have a php application on my intranet that needs to add events in the calenders of my users. I followed the following instructing https://developers.google.com/+/domains/authentication/delegation I setup the google-api-php client and used the example service-accounts.php as my starting point. $client_id = 'rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr.apps.googleusercontent.com'; $service_account_name = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy@developer.gserviceaccount.com'; $key_file_location = 'file.p12'; $client = new Google_Client(); $client->setApplicationName("egw - intranet"); $service = new