Skip to content

Repository files navigation

WebDAV implementation for .NET

This repository contains .NET implementations for WebDAV associated protocols like CalDAV or CardDAV.

CalDAV

using AMWD.Protocols.CalDAV;

using var client = new CalDavClient("https://your.caldav.host", "username", "P@ssw0rd!");
bool isInitialized = await client.InitializeAsync();
if (!isInitialized)
{
	Console.WriteLine("Failed to initialize CalDAV client.");
	return;
}

var calendars = await client.GetCalendarsAsync();
foreach (var calendar in calendars)
{
	Console.WriteLine($"Calendar: {calendar.DisplayName} ({calendar.Url})");
}

CardDAV

using AMWD.Protocols.CardDAV;

using var client = new CardDavClient("https://your.carddav.host", "username", "P@ssw0rd!");
bool isInitialized = await client.InitializeAsync();
if (!isInitialized)
{
	Console.WriteLine("Failed to initialize CardDAV client.");
	return;
}

var addressBooks = await client.GetAddressBooksAsync();
foreach (var addressBook in addressBooks)
{
	Console.WriteLine($"Address Book: {addressBook.DisplayName} ({addressBook.Url})");
}

MIT License (see choose a license).

About

.NET implementations of the WebDAV protocol and derivates as CalDAV or CardDAV

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages