fetchCalendars
fetchCalendars
Section titled “fetchCalendars”get all calendars of the passed in CALDAV account
const calendars = await fetchCalendars({ account, headers: { authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj', },});Arguments
Section titled “Arguments”accountDAVAccountheaderrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch functionfetchcustom fetch implementationpropsCALDAV prop element in ElementCompact form, overriding default props to fetchprojectedPropscustom props projection object, used as a map to map fetched custom props to valueswhen overriding props, supported-calendar-component-set and resourcetype are required
Return Value
Section titled “Return Value”array of DAVCalendar of the account
Behavior
Section titled “Behavior”use PROPFIND to get all the basic info about calendars on certain account