欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > 名人名企 > mac calDAV 日历交互

mac calDAV 日历交互

2025/3/20 6:18:16 来源:https://blog.csdn.net/weixin_43851149/article/details/146362440  浏览:    关键词:mac calDAV 日历交互

安装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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词