如何使用 Google Calendar API 获取特定时间范围内的所有日历条目
我想查看特定日历的特定时间范围内的事件,但在使用 API 时遇到问题,它是一个通用 API,它让我想起了使用 DOM。问题是它似乎很难使用,因为许多信息都在通用基类中。
如何使用 Groovy 或 Java 获取日历的事件? 有人有使用curl 传递凭据的示例吗?
示例代码将不胜感激。
I want to view events over specific time range for a specific calendar, but am having trouble using the API, It is a generic API, and it reminds me of using the DOM. The problem is that it seems difficult to work with because much of the information is in generic base classes.
How do I get the events for a calendar using Groovy or Java?
Does anybody have an example of passing credentials using curl?
Example code would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
本文档提供了大多数常见用例的示例。例如,下面是用于检索特定时间范围内的事件的代码,
您可以使用以下代码使其变得更加 Groovier:
This document has examples for most of the common use cases. For example, here's the code for retrieving events for a specific time range
You could make this a bit Groovier, using something like:
如果您不需要更改日历,则只需获取日历私有提要 url,并且可以使用类似的内容(取自 http://eu.gr8conf.org/agenda 页面)。它使用 ICal4J 库。
快乐黑客。
If you do not need to alter the calendar, you only need to get the calendars private feed url, and you can use something like this (taken from the http://eu.gr8conf.org/agenda page). It uses the ICal4J library.
Happy hacking.