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-忙-query来获取忙/闲信息,但是服务器给出了(500)内部服务器错误。当我获取日历时,它显示就绪/空闲/忙碌访问,并且支持的报表集具有日历的空闲-忙碌查询。我遗漏了什么或者iCloud不支持忙/闲查询?
发布于 2017-11-07 18:14:53
除非我没记错,否则您查询的是日历主页(https://pxx-caldav.icloud.com/token/calendars/),而不是单个日历。根据https://www.rfc-editor.org/rfc/rfc4791#section-7.2,服务器不强制支持日历主页上的fb查询。当然,返回500似乎不是正确的响应。
现在,如果您想要查询用户的总体可用性,则应该使用CalDAV Scheduling freebusy查询。请参阅https://www.rfc-editor.org/rfc/rfc6638#section-5
https://stackoverflow.com/questions/47131393
复制相似问题