Category : google-calendar-api

I wanna call Google Calendar API’s freebusy.query endpoint by service account in server-side with php and google-api-php-client. First, I opened Google Cloud Platform project page. Then I created service account, downloaded credential JSON file, enabled Calendar API, and allowed delegated authority. Second, I opened Google Admin. Then I allowed scope:https://www.googleapis.com/auth/calendar for delegated authority. Third, I ..

Read more

Hey I’m using an API for first time, and i am confuse about how to get event id from calendar API. Currently i am using sample quickstart.php file, and getting summary from this: $results = $service->events->listEvents($calendarId, $optParams); $events = $results->getItems(); if (empty($events)) { print "No upcoming events found.n"; } else { print "Upcoming events:n"; foreach ..

Read more

I am using Google Calendar Api in my php project, and I every day get "Calendar usage limits exceeded" message when I doing insert query, but delete and list methods work fineā€¤ It is my insert function. who can help me? function insertEvent($start, $end, $cId, $namePhoneClient,$myEmail,$trainerMail){ $client = getClient(); $service = new Google_Service_Calendar($client); $event = ..

Read more

For some reason when my token expires I need to delete the file and reconnect again otherwise nothing is working. Is it because the new token is not stored or? I have the following code: if(!$_GET[‘id’]){ echo print_r(‘BUSINESS NOT FOUND’); exit(); }else { $client = new Google_Client(); $client->setApplicationName(‘Google Calendar API PHP Quickstart’); $client->setScopes(Google_Service_Calendar::CALENDAR); $client->setAuthConfig(__DIR__ . ..

Read more

I would like to be able to setup google calendar push notifications in my local. Google calendar documentation requires domain registration https://developers.google.com/calendar/v3/push#registering-your-domain. I would like to know if there is any workaround to make this work in the local environment using a virtual host accessible only in my local machine. If that’s impossible I would ..

Read more