https://github.com/sepppenner/caldavnet
CalDAVNet is a project to access CalDAV servers and a fork of https://github.com/markatk/CalDAV.NET.
https://github.com/sepppenner/caldavnet
Last synced: 9 months ago
JSON representation
CalDAVNet is a project to access CalDAV servers and a fork of https://github.com/markatk/CalDAV.NET.
- Host: GitHub
- URL: https://github.com/sepppenner/caldavnet
- Owner: SeppPenner
- License: mit
- Created: 2023-11-11T19:14:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-05T21:30:37.000Z (over 1 year ago)
- Last Synced: 2025-08-23T01:39:03.809Z (10 months ago)
- Language: C#
- Homepage:
- Size: 119 KB
- Stars: 6
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: License.txt
Awesome Lists containing this project
README
CalDAVNet
====================================
CalDAVNet is a project to access CalDAV servers and a fork of https://github.com/markatk/CalDAV.NET.
[](https://ci.appveyor.com/project/SeppPenner/caldavnet)
[](https://github.com/SeppPenner/CalDAVNet/issues)
[](https://github.com/SeppPenner/CalDAVNet/network)
[](https://github.com/SeppPenner/CalDAVNet/stargazers)
[](https://raw.githubusercontent.com/SeppPenner/CalDAVNet/master/License.txt)
[](https://www.nuget.org/packages/HaemmerElectronics.SeppPenner.CalDAVNet/)
[](https://www.nuget.org/packages/HaemmerElectronics.SeppPenner.CalDAVNet/)
[](https://snyk.io/test/github/SeppPenner/CalDAVNet)
[](https://matrix.to/#/#CalDAVNet:gitter.im)
[](https://franzhuber23.blogspot.de/)
[](https://patreon.com/SeppPennerOpenSourceDevelopment)
[](https://paypal.me/th070795)
## Available for
* Net 8.0
* Net 9.0
## Net Core and Net Framework latest and LTS versions
* https://dotnet.microsoft.com/download/dotnet
## Basic usage
```csharp
using Ical.Net.CalendarComponents;
///
/// The main method.
///
public static async Task Main()
{
// Create client.
var calDavClient = new Client("http://192.168.2.2/caldav.php/user/someid", "user", "password");
// Get all calendars for the user.
var calendars = await calDavClient.GetAllCalendars();
// Get the calendar by the uid.
var calendarByUid = await calDavClient.GetCalendarByUid("/caldav.php/user/uniqueid/");
// Get the default calendar.
var defaultCalendar = await calDavClient.GetDefaultCalendar();
// Add an event.
var calendarEvent = new CalendarEvent();
var added = await calDavClient.AddOrUpdateEvent(calendarEvent, new Ical.Net.Calendar());
// Delete an event.
var deleted = await calDavClient.DeleteEvent(calendarEvent);
}
```
## NuGet
The project can be found on [nuget](https://www.nuget.org/packages/HaemmerElectronics.SeppPenner.CalDAVNet/).
## Install
```bash
dotnet add package HaemmerElectronics.SeppPenner.CalDAVNet
```
Change history
--------------
See the [Changelog](https://github.com/SeppPenner/CalDAVNet/blob/master/Changelog.md).