如何使用 google-api-client 通过 Android 检索 google 日历事件
我发现 gdata 库与 Android 不兼容,并已切换到 google-api-client 库。我遵循了 v2-atom-android 示例,但它不涵盖如何检索事件,仅涵盖日历。对于我的应用程序,我需要能够下载日历和事件 - 有谁知道如何使用 google-api-client 库执行此操作?
I have figured out the gdata libraries are not compatible with Android and have switched to the google-api-client libraries. I have followed the v2-atom-android sample but it does not cover how to retrieve events, only calendars. For my app, I need to be able to download the calendars and events - does anyone know how to do this with google-api-client libraries?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要向给定的事件源链接发送 GET 请求,该链接作为日历源请求的一部分接收到的每个日历的属性。
我的意思是如果是 ATOM,则为
link rel='self'
;如果为 JSONC,则为selfLink
。有关详细信息,请参阅以下地址:
检索事件
问候,
普里乔斯
You need to send a GET request to a given event feed link which is included as a property of each calendar received as part of request to a Calendar feed.
I mean either
link rel='self'
if ATOM orselfLink
if JSONC.For more information, please refer to this address:
Retrieving events
Regards,
PrieJos