Google calendar meet link not being created automatically via Google Calendar PHP API. Google Calendar API stopped creating a hangout meeting link automatically. The same code was working a few months back but not not not.
Code
$client = getClient();
$service = new Google_Service_Calendar($client);
$event = new Google_Service_Calendar_Event(array(
'summary' => $summary, //'Google Calendar summary',
'location' => $location, //'USA',
'description' => $description, //'Book Room',
'start' => array(
'dateTime' => $sessionStartTime,//'2018-08-16T14:30:00-00:00',
'timeZone' => 'America/Los_Angeles',
),
'end' => array(
'dateTime' => $sessionEndTime,//'2018-08-16T14:30:00-01:00',
'timeZone' => 'America/Los_Angeles',
),
'attendees' => array(
array('email' => $attendeesEmailNEW,'resource' => true),
),
'reminders' => array(
'useDefault' => FALSE,
'overrides' => array(
array('method' => 'popup', 'minutes' => 10),
),
),
));
$calendarId = 'primary';
$event = $service->events->insert($calendarId, $event);
$createdID = $event->getId();