Good morning,
I'm creating a Calendar that syncronizes with Google Calendar, but I can´t get the recurrence of the Events of Google Calendar. I think the field "recurrence" of the events is a protected field. But I don't know how to get the field of a saved Event.
EDIT: The code:
$params = array(
'orderBy' => 'startTime',
'singleEvents' => 'true',
'timeMin' => date(DateTime::ATOM),
);
$listarEventos = $service->events->listEvents($calendar_id, $params);
foreach ($listarEventos['items'] as $i){
echo $i->recurrence;
}
And If I try to print the content of the events, it shows me an empty field recurrence, and I have proved that it's recurrent.
Thanks!
Events.list returns a list of events resources.
If the event has a recurrent set you can find it in there.
I cant see your code how you are accessing it but if you test at the bottom of the event.list you will notice that if you have access to the calendar you should have access to the recurrence field.