Java 和 Google 日历
如果在这里立即得到回答,我会感到震惊,因为这是一个特定于 Google Calendar Java API 的问题,但无论如何我都会把它放在那里。
Google 日历教程对日历插入 以及事件插入。然而,我真的很想在我的服务器上创建一个日历,向其中添加事件,然后将整个混乱插入到我用户的 Google 日历中。这可能吗?
以下是 CalendarEntry... addExtension()
看起来很可疑,但我不知道它是否在 Google 日历中执行任何操作。
另外,我知道对此的替代解决方案:
- 创建日历
- 插入日历
- 创建事件
- 插入事件
......但这种方式相当丑陋。
谢谢, 卡尔
I would be shocked if this were immediately answered here, as this is a question specific to the Google Calendar Java API, but I'll put it out there anyway.
The tutorials for Google Calendar give a nice explanation of Calendar Insertion as well as Event Insertion. However, I would really like to create a calendar on my server, add events to it, and then insert the whole mess into my user's Google Calendar. Is this possible?
Here is the api for CalendarEntry... addExtension()
looks suspicious, but I'm clueless as to whether or not it does anything in Google Calendar.
Also, I am aware of the alternative solution to this:
- Create the calendar
- Insert the calendar
- Create the events
- Insert the events
...But this way is rather ugly.
Thanks,
Carl
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请务必阅读有关批量请求的部分
http ://code.google.com/apis/calendar/data/2.0/developers%5Fguide%5Fjava.html#batch
我认为没有一个 API 可以在一次操作中上传充满事件的整个日历,最好的选择是分一批或多批进行。来自文档:
Be sure to read the section about batch requests
http://code.google.com/apis/calendar/data/2.0/developers%5Fguide%5Fjava.html#batch
I don't think there's an API for uploading an entire calendar full of events in one operation, your best bet is to do it in one or more batches. From the docs: