安装Baïkal docker
https://sabre.io/dav/building-a-caldav-client/
在Baïkal服务器上注册账户
http://localhost:8080/admin/?/users/calendars/user/1/
在日历端登录账户:
Server: http://127.0.0.1:8080/dav.php
Server Path: /dav.php/principals/lion
No extra port and SSL checkbox ticked.
Update: I now updated the Mac to MacOS 15.2 and after the reboot, I can access the server with my account as well.
Thanks again for helping.
设置刷新频率
具体操作
建日历
curl -X MKCALENDAR \--digest -u lion:916003 \-H "Content-Type: application/xml; charset=utf-8" \-d '<?xml version="1.0" encoding="utf-8" ?><c:mkcalendar xmlns:d="DAV:" xmlns:c="urn:ietf:params:xml:ns:caldav"><d:set><d:prop><d:displayname>ss</d:displayname><c:supported-calendar-component-set><c:comp name="VEVENT"/><c:comp name="VTODO"/><c:comp name="VJOURNAL"/></c:supported-calendar-component-set></d:prop></d:set></c:mkcalendar>' \http://127.0.0.1:8080/dav.php/calendars/lion/testss
加事件
curl -X PUT \--digest -u lion:916003 \-H "Content-Type: text/calendar; charset=utf-8" \-d 'BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Lion//iCal4j 1.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID:20250322T200000-001@lion
DTSTAMP:20250322T200000Z
DTSTART:20250322T200000Z
DTEND:20250322T210000Z
SUMMARY:Meeting
END:VEVENT
END:VCALENDAR' \http://127.0.0.1:8080/dav.php/calendars/lion/testss/20250322T200000-001.ics
查全部
curl -X PROPFIND \--digest -u lion:916003 \-H "Content-Type: application/xml" \-d '<?xml version="1.0" encoding="utf-8" ?><d:propfind xmlns:d="DAV:"><d:prop><d:displayname /></d:prop></d:propfind>' \http://127.0.0.1:8080/dav.php/calendars/lion/
删除
curl -X DELETE \--digest -u lion:916003 \http://127.0.0.1:8080/dav.php/calendars/lion/test
删除事件
curl -X DELETE \--digest -u lion:916003 \http://127.0.0.1:8080/dav.php/calendars/lion/testss/20250322T200000-001.ics