Skip to main content
Version: 1.1.6

serviceDiscovery

serviceDiscovery

automatically discover service root url

const url = await serviceDiscovery({
account: { serverUrl: 'https://caldav.icloud.com/', accountType: 'caldav' },
headers: {
authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj',
},
});

Arguments

  • account required, account with serverUrl and accountType
  • headers request headers

Return Value

root url

Behavior

use /.well-known/ request to follow redirects to find redirected url