fetchVCards
fetchVCards
get all/specified vcards of the passed in addressBook
const vcards = await fetchVCards({
addressBook: addressBooks[0],
headers: {
authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj',
},
});
Arguments
addressBook
required, DAVAddressBook to fetch vcards fromobjectUrls
vcard urls to fetchheaders
request headersvCardUrlFilter
predicate function to filter urls from the address book before fetching
Return Value
array of DAVVCard
Behavior
a mix of addressBookMultiGet and addressBookQuery, you can specify objectUrls here.