mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
Apple calendar sync, timezone, first day of week additions
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
export async function fetchGoogleCalendarEvents(token, email, startDate, endDate) {
|
||||
export async function fetchGoogleCalendarEvents(token, email, familyId, startDate, endDate) {
|
||||
console.log(token);
|
||||
const response = await fetch(
|
||||
`https://www.googleapis.com/calendar/v3/calendars/primary/events?single_events=true&time_min=${startDate}&time_max=${endDate}`,
|
||||
@ -45,6 +45,7 @@ export async function fetchGoogleCalendarEvents(token, email, startDate, endDate
|
||||
startDate: startDateTime,
|
||||
endDate: endDateTime,
|
||||
allDay: isAllDay,
|
||||
familyId,
|
||||
email
|
||||
};
|
||||
googleEvents.push(googleEvent);
|
||||
|
||||
Reference in New Issue
Block a user