iCloud免费忙查询caldav

时间:2017-11-06 06:58:08

标签: icloud caldav

URL -: https://pxx-caldav.icloud.com/token/calendars/
Content type -: application/xml; charset=utf-8
Headers -: {Depth: 1}
Method -: REPORT
Request content -: <?xml version='1.0' encoding='utf-8' ?>
                  <C:free-busy-query xmlns:C='urn:ietf:params:xml:ns:caldav'>
                       <C:time-range start = '20171104T120000Z' end='20171113T120000Z'/>
                  </C:free-busy-query>

在这里,我尝试使用free-busy-query获取忙/闲信息,但服务器提供(500)内部服务器错误。当我获取日历时,它显示就绪/免费忙访问,支持的报告集具有日历的忙闲查询。我错过了什么或者iCloud不支持忙/闲查询?

1 个答案:

答案 0 :(得分:1)

除非我弄错了,否则您要查询日历主页(https://pxx-caldav.icloud.com/token/calendars/)而不是个别日历。 根据{{​​3}},服务器不必在日历主页上支持fb查询。当然,返回500似乎不是正确的回应。

现在,如果您想要查询用户的整体可用性,则应使用CalDAV Scheduling freebusy查询。见https://tools.ietf.org/html/rfc4791#section-7.2

相关问题