Skip to main content
Version: 1.1.6

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 from
  • objectUrls vcard urls to fetch
  • headers request headers
  • vCardUrlFilter 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.