fetchVCards
fetchVCards
Section titled “fetchVCards”get all/specified vcards of the passed in addressBook
const vcards = await fetchVCards({ addressBook: addressBooks[0], headers: { authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj', },});Arguments
Section titled “Arguments”addressBookrequired, DAVAddressBook to fetch vcards fromobjectUrlsvcard urls to fetchheadersrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch functionfetchcustom fetch implementationurlFilterdefault: no filter predicate function to filter urls from the address book before fetchinguseMultiGetdefault: true whether to use addressBookMultiGet as underlying function to fetch vcards, if set to false, it will use addressBookQuery instead
Return Value
Section titled “Return Value”array of DAVVCard
Behavior
Section titled “Behavior”a mix of addressBookMultiGet and addressBookQuery, you can specify objectUrls here.