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.

设置刷新频率

具体操作

建日历

bash 复制代码
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

加事件

bash 复制代码
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 

查全部

bash 复制代码
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/

删除

bash 复制代码
curl -X DELETE \
  --digest -u lion:916003 \
  http://127.0.0.1:8080/dav.php/calendars/lion/test

删除事件

bash 复制代码
curl -X DELETE \
  --digest -u lion:916003 \
  http://127.0.0.1:8080/dav.php/calendars/lion/testss/20250322T200000-001.ics
相关推荐
今天头发还在吗3 小时前
【Go】:mac 环境下GoFrame安装开发工具 gf-cli——gf_darwin_arm64
macos·golang·go·gf-cli
小妖6666 小时前
MAC在home下新建文件夹报错“mkdir: test: Operation not supported”
macos
北冥有鱼被烹10 小时前
【问题解决】mac笔记本遇到鼠标无法点击键盘可响应处理办法?(Command+Option+P+R)
macos
Winter_Sun灬14 小时前
Mac开发第一步 - 安装Xcode
ide·macos·xcode
白玉cfc16 小时前
【iOS】push,pop和present,dismiss
macos·ios·cocoa
李游Leo19 小时前
LaTeX TeX Live 安装与 CTAN 国内镜像配置(Windows / macOS / Linux 全流程)
linux·windows·macos
华溢澄1 天前
macOS下基于Qt/C++的OpenGL开发环境的搭建
c++·qt·macos·opengl
浮生若茶80881 天前
Flutter环境搭建全攻略之-Macos环境搭建
flutter·macos
xingxing_F2 天前
SoundSource for Mac 音频控制工具
macos·音视频
snows_l2 天前
MacOS 通过Homebrew 安装nvm
前端·macos