Android 中通过 google-java-api 访问非默认日历事件
我希望我们的应用用户能够访问其 Google 日历中的非默认日历活动。我们可以很好地访问他们的默认日历中的事件,但我们也希望包括他们其他日历中的事件。我在谷歌支持论坛上发现了一篇帖子,上面写着:
“要从另一个日历获取提要,您必须在 URL 中指定其 ID。其他日历的 ID(= 主/默认日历除外),您必须转到日历设置部分(查看屏幕左侧标题为“我的日历”的框),单击“设置”,然后单击其他日历的链接,然后滚动到页面底部,并复制/粘贴您获得的网址单击“私人地址”行上的橙色“XML”按钮。”
有更好的方法吗?我是否真的需要让我们的应用程序用户按照这些步骤手动输入其非默认 Google 日历的 URL,以便我们可以检索它们?我们正在使用 google-api-java-client 来访问用户的 Google 日历。
I would like our app users to be able to access the non-default calendar events in their Google calendar. We can access the events in their default calendar just fine, but we would like to include the events from their other calendars as well. I found a post on the google support forums that says:
"To get a feed from another calendar, you have to specify its ID in the URL. The IDs for other calendars (= other than the main/default one), you have to go to the calendars Settings section (look at the box entitled "my calendars" on the left side of the screen), click on "settings", and then on the link of your other calendar. Then, scroll to the page-bottom, and copy/paste the URL you get by clicking on the orange "XML" button, on the "private address" line."
Is there a better way to do this? Would I actually have to have our app users follow these procedures to manually enter the URL for their non-default Google calendars so that we can retrieve them? We are using the google-api-java-client to access the users Google calendar.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我获取日历 ID 的方法:
Here is the way I obtain the calendar IDs: