- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我曾经请求 caldav 服务器为给定用户提供所有定义的日历。这适用于 fruux/ownCloud(Sabre) 和经典方法 GCalendar。请求是这样的:
method: PROPFIND headers:Depth: 1
urlstr:https://www.google.com/calendar/dav/{theUserName}@gmail.com/
contentType:application/xml
content:
<d:propfind xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/" xmlns:c="urn:ietf:params:xml:ns:caldav">
<d:prop>
<d:resourcetype />
<d:displayname />
<cs:getctag />
<c:supported-calendar-component-set />
</d:prop>
</d:propfind>
迁移到 Google OAuth2 有不同的调用,ulrstr: 会像 https://apidata.googleusercontent.com/caldav/v2/ {校准}/用户
这里的 'calid' 必须是一个特定的日历 [1]有说:
Where calid should be replaced by the "calendar ID" of the calendar to be accessed
意图是获取用户帐户的所有日历!所以这些电话将无济于事。
有什么建议可以让他们进入 Google/CalDAV/V2 世界吗?
君特
另见:[1] https://developers.google.com/google-apps/calendar/caldav/v2/guide
最佳答案
答案评论中的链接已损坏。所以我在这里写了一个有效的答案。
PROPFIND https://apidata.googleusercontent.com/caldav/v2
<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:current-user-principal/>
</D:prop>
</D:propfind>
2.PROPFIND calendar-home-set 带有我们在上述请求的响应中获得的主要 URL。
PROPFIND https://apidata.googleusercontent.com/{user-principal-path}
<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<C:calendar-home-set xmlns:C="urn:ietf:params:xml:ns:caldav"/>
</D:prop>
</D:propfind>
cf) 另一种使用 REPORT principal-match 查找 calendar-home-set 的方法在我的案例中不起作用。
PROPFIND https://apidata.googleusercontent.com/{calendar-home-set-path}
Depth: 1
<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:"
xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop>
<D:displayname/>
<D:resourcetype/>
<C:supported-calendar-component-set/>
</D:prop>
</D:propfind>
关于oauth-2.0 - OAuth2/Google CalDAV - 用户日历列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18004654/
我用 C# 为我们销售的产品定制了一个 CalDav 服务器,一切都很好。只有一件事困扰着我,但在标准中我找不到解决我“烦恼”的方法。 当客户端连接到我们的 CalDav 服务器并创建一个新的 Eve
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
目前,我在Android Java上研究calDAV协议(protocol),我陷入了CalDAV身份验证。我清楚地了解它是如何工作的。大家能给我一个简单的示例项目来演示吗?谢谢大家。 最佳答案 Ch
我有一个在嵌入式 Linux 服务器上运行的 Baikal CalDav 后端。我可以使用具有以下正文的 MKCALENDAR 调用成功创建日历:
已结束。此问题正在寻求书籍、工具、软件库等的推荐。它不满足Stack Overflow guidelines 。目前不接受答案。 我们不允许提出寻求书籍、工具、软件库等推荐的问题。您可以编辑问题,以便
我有一个在嵌入式 Linux 服务器上运行的 Baikal CalDav 后端。我可以使用具有以下正文的 MKCALENDAR 调用成功创建日历:
我特别设置了一个 caldav 服务器 http://radicale.org/现在我想集成一个 jquery 日历,如 http://themouette.github.com/jquery-wee
我正在尝试从 CalDAV 服务器获取当前用户拥有的日历列表。 我能够通过以下请求使用我们的初始测试帐户获取此信息: PROPFIND /calendars/users/test/ 结果
我目前正在一个预订网站上工作。我正在使用 PHP Baikal CalDav Server(对其进行了修改)。当通过 Mozilla Thunderbird 或 iCal 生成时,Baikal 生成的
简而言之,我正在 Ubuntu/Linux 上寻找一个解决方案,它允许我保持两个日历同步,每个日历都由具有 Web 界面的远程 CalDAV 服务器管理,从某种意义上说,我所做的任何更改一个日历将通过
我的数据库中保存了一组事件(一个非常特殊的数据库,所以我不能将一些流行的开源服务器与 MySQL 一起使用)。现在我想构建一个 CalDav 服务器(通过 Java),以便用户可以将他的日历客户端连接
iCalendar 和 CalDav 之间有什么区别? 最佳答案 CalDAV 是 WebDAV 的协议(protocol)扩展,可用于操作 iCalendar 格式的数据。所以 CalDAV 就像日
对于日历应用程序,我想知道第 3 方日历事件的变化。例如,用户将 iCal/Google 日历添加到我的应用程序中。我的应用程序应该收到事件更改的通知。经过一些研究,似乎 CalDAV 是这样做的方法
如果用户的用户名和密码已知,我将尝试访问该用户的雅虎日历。我找到了一个使用 CalDav api 来完成任务的代码片段。代码使用 2 个库 sardine.jar 和 ical4j.jar。该代码的文
我正在构建一个 java-ee 应用程序,它应该使用 SSL 连接到 iCal CalDAV 服务器。 每次我尝试连接到服务器时都会收到此错误。 javax.net.ssl.SSLException:
CalDAV 服务器会提供比 .ics 文件更快的同步吗?专门针对 iOS 和 Google 日历。我意识到客户负责更新和频率。 许多帖子表明 Google 日历更新 .ics 提要的速度很慢。我测试
我目前正在为我的日历应用程序开发一个 caldav 同步服务器层。我能够回答日历客户端的所有初始请求,并且目前坚持使用 REPORT 方法。 当 PROPFIND 在 Calendar 上完成时,它会
我正在发送原始请求,并通过 HTTP 接收原始响应。许多字符似乎在响应中被转义,例如本例中的逗号:“LOCATION:Philadelphia\, PA.”我的问题是,这是 HTTP 的东西、PHP
我使用 Chandler Cosmo 或 DAViCal Calendar Server 安装自己的 CalDav Server。我想使用 php 作为 CalDAV 客户端。但是我在 java 中看
我正在尝试编写一个基本的 CalDAV 交互脚本,以便与给定帐户的 Apple 的 iCloud 日历一起使用。目前,我收到如下所示的响应: Precondition Failed Requested
我是一名优秀的程序员,十分优秀!