【问题标题】:Google Calendar - Python - Sync谷歌日历 - Python - 同步
【发布时间】:2013-01-26 00:22:24
【问题描述】:

我一直在研究并且很难弄清楚如何解决我的问题。基本上,我的最终目标是能够登录 Google 日历并获取日期事件并使用这些信息。如果可能,可以使用多个帐户。我进行了一些研究,并遇到了 Google 自己的 API,但我不知道从哪里开始。

【问题讨论】:

标签: python google-calendar-api sync


【解决方案1】:

这是 API 文档(带有 python 代码示例): https://developers.google.com/google-apps/calendar/v2/developers_guide_protocol

您将需要这个库: http://code.google.com/p/gdata-python-client/

更具体的你需要使用这个类: http://code.google.com/p/gdata-python-client/source/browse/src/gdata/calendar/client.py

为了从用户那里获取数据,您需要为每个用户提供 auth_token。

我不确定此 API 是否允许您使用直接登录而不是 auth_token。

更新: 当前 API 版本为 3:https://developers.google.com/google-apps/calendar/

【讨论】:

  • 您链接到的 API 已弃用。 v3 api 是当前的。
【解决方案2】:

Google Calendar V3 Python 客户端

Google Calendar V3 提供了一个 API 客户端,可以使用以下方式进行身份验证:access_token、refresh_token、client_id 和 client_secret

https://github.com/priyadarshy/google-calendar-v3

【讨论】:

    猜你喜欢
    • 2017-10-12
    • 1970-01-01
    • 1970-01-01
    • 2011-01-31
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多