Kubessandra / react-google-calendar-api

An api to manage your google calendar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeat created event

JulesImmerzeel opened this issue · comments

The google calendar api gives you the option to repeat events daily weekly etc. I did not see this implementation in you your documentation or did I miss something?

U just need to add the recurrecne property to the event object, like that:
await ApiCalendar.createEvent({ summary: formData.description, start: { dateTime: payload.start, timeZone: 'America/Sao_Paulo' }, end: { dateTime: payload.end, timeZone: 'America/Sao_Paulo' }, recurrence: ['RRULE:FREQ=DAILY;COUNT=3'], });