我一直在研究,并且很难弄清楚如何解决问题。基本上我的最终目标是能够登录Google日历并抓住日期事件并使用这些信息。如果可能,可以使用多个帐户。我已经完成了一些研究并且遇到了谷歌自己的API,但我不知道从哪里开始。
答案 0 :(得分:2)
这是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/
答案 1 :(得分:1)
Google Calendar V3 Python客户端
Google Calendar V3提供了一个API客户端,可以使用以下命令进行身份验证:access_token,refresh_token,client_id和client_secret