fetchAddressBooks
fetchAddressBooks
Section titled “fetchAddressBooks”get all addressBooks of the passed in CARDDAV account
const addressBooks = await fetchAddressBooks({ account, headers: { authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj', },});Arguments
Section titled “Arguments”accountDAVAccountpropsCARDDAV prop element in ElementCompact form, overriding default props to fetch.headersrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch functionfetchcustom fetch implementation
Return Value
Section titled “Return Value”array of DAVAddressBook
Behavior
Section titled “Behavior”use PROPFIND and to get all the basic info about addressBook on certain account