I want get the creator of a Google Calendar Event
, so I browsed the documentation page, specifically this section and I saw that there is an object called creator
, but how can I extract this from an event taken by the calendar?
My code looks like this:
foreach ($events->getItems() as $event)
{
$appointment = [
'start_datetime' => date('Y-m-d H:i:s', strtotime($event->start->getDateTime())),
'end_datetime' => date('Y-m-d H:i:s', strtotime($event->end->getDateTime())),
'notes' => $event->getDescription(),
'title' => $event->getSummary(),
'id_user' => $operator_id,
'id_google_calendar' => $event->getId(),
'attendee' => []
'creator' => ??????
];
}