fetchHomeUrl
fetchHomeUrl
Section titled “fetchHomeUrl”fetch resource home set url
const url = await fetchHomeUrl({ account: { principalUrl, serverUrl: 'https://caldav.icloud.com/', rootUrl: 'https://caldav.icloud.com/', accountType: 'caldav', }, headers: { authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj', },});Arguments
Section titled “Arguments”accountrequired, account withprincipalUrlandaccountTypeheadersrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch functionfetchcustom fetch implementation
Return Value
Section titled “Return Value”resource home set url
Behavior
Section titled “Behavior”send calendar-home-set or addressbook-home-set (based on accountType) PROPFIND request and extract resource home set url from xml response