Skip to content
Advertisement

PHP Google insert calendar event API

I am using this package : https://github.com/googleapis/google-api-php-client

$google_service = new Google_Service_Calendar($google_client);
$event = new Google_Service_Calendar_Event(array(....));
// Insert Calendar event
$event = $google_service->events->insert($calendarId, $event);
p($event);
$meet_link = $event->conferenceData->entryPoints[0]->uri;

I used to get $meet_link like this from the API but suddenly it started throwing error

trying to get property 'entryPoints' of non-object"

Infact calendar event has been inserted perfectly but I am not getting $event->conferenceData->entryPoints[0]->uri in response. Infact I am not getting this entryPoints object($event->conferenceData->entryPoints)

Advertisement

Answer

There seems to be an issue with the conferenceData returned when creating an event with the API.

You can click on the star next to the issue number to receive updates and to give more priority to the report.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement