如何使用 Google 日历的“私人地址”使用 gdata.calendar.service?

发布于 2024-12-28 20:17:11 字数 461 浏览 4 评论 0原文

网上有几个示例描述了如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

御守 2025-01-04 20:17:11

这应该非常简单。 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文