propfind
propfind
Section titled “propfind”The PROPFIND method retrieves properties defined on the resource identified by the Request-URI
const [result] = await propfind({ url: 'https://caldav.icloud.com/', props: [{ name: 'current-user-principal', namespace: DAVNamespace.DAV }], headers: { authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj', },});Arguments
Section titled “Arguments”urlrequired, request urlpropsrequired, ElementCompact props to finddepthDAVDepthheadersrequest headersheadersToExcludearray of keys of the headers you want to excludefetchOptionsoptions to pass to underlying fetch function
Return Value
Section titled “Return Value”array of DAVResponse
Behavior
Section titled “Behavior”send a prop find request, parse the response xml to an array of DAVResponse.