Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fetch Recurring events with google calendar api v3 in php

I am using google calendar api v3 to fetch calendar events. But how to fetch all the recurring events. It just return single event with some hint like: DAILY;UNTIL=20 etc. Please help me out with this...

like image 645
user2291855 Avatar asked Nov 30 '22 01:11

user2291855


1 Answers

If you are using the Events: list API method, add the singleEvents=true parameter. From the API docs:

singleEvents

boolean

Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.

like image 168
Russell Silva Avatar answered Dec 06 '22 07:12

Russell Silva