如何使用 Google 日历的“私人地址”使用 gdata.calendar.service?
网上有几个示例描述了如何使用 gdata.calendar.service(我在这里错误地写了“client”)类通过电子邮件地址和密码登录日历。有没有办法在 gdata.calendar.service 中使用日历的“私人地址”(无论是 xml 还是 ical)?如果可以避免的话,我不想在脚本中硬编码我的密码。
“私人地址”是一个类似于以下内容的网址:
https://www.google.com/calendar /feeds/${somestring}%40group.calendar.google.com/private-${someotherstring}/basic
您可以从“日历设置”页面底部的链接获取它。
我是gdata for python的最新版本:gdata-2.0.16。
There are several examples online describing how to use the gdata.calendar.service (I mistakenly wrote "client" here) class to log in to a calendar with an email address and a password. Is there a way to use the calendar's "Private Address" (be it xml or ical) in gdata.calendar.service? I don't want to hard code my password in a script if I can avoid it.
The "Private Address" is a URL that looks something like:
https://www.google.com/calendar/feeds/${somestring}%40group.calendar.google.com/private-${someotherstring}/basic
and you can get it from a link at the bottom of the "calendar settings" page.
I am the latest version of gdata for python: gdata-2.0.16.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这应该非常简单。 IIRC 您需要将可见性设置为“private-YOURTOKEN”,而不是“public”。然后它将构建正确的 URL。
但是,您必须注意,通过此私有 URL 进行的访问是只读。对于写访问,您需要进行完整的密码身份验证。
This should work pretty much straightforward. IIRC you need to set visibility to "private-YOURTOKEN", instead of "public". Then it will build the proper URL.
However, you must be aware that the access via this private URL is readonly. For write access, you need to do the full password authentication.