Kubessandra / react-google-calendar-api

An api to manage your google calendar
MIT License
215 stars 88 forks source link

Repeat created event #47

Closed JulesImmerzeel closed 3 years ago

JulesImmerzeel commented 3 years ago

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?

caiquejjx commented 3 years ago

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'], });