Google 日历小工具需要知道当前正在查看哪个事件

发布于 2024-11-26 05:29:49 字数 422 浏览 6 评论 0原文

我现在正在编写我的第一个 Google 日历侧边栏小工具。当用户在 Google 日历中时,我计划让他们打开一个事件,当他们在查看/编辑页面时,它将使用该事件的数据来查找其他类似的事件。

问题是,我无法找到一种方法来知道当前正在查看哪个事件。一旦我能说出这一点,我认为剩下的事情就不会有太大困难了。

所以,我想知道:

  1. Google Calendar API 是否提供侧边栏小工具的视图信息?我认为答案是否定的,但我宁愿错了。
  2. 有没有其他方法可以获取此信息,例如通过从页面的 DOM 查找信息?

提前致谢!我可能会在其他地方发布这个问题,但无论如何我一定会在这里发布答案。

I am programming my first google calendar sidebar gadget right now. When the user is in Google Calendar, I plan to have them open up an event, and when they are in view/edit page, it will use that event's data to find other similar events.

The problem is, I can't figure out a way to know which event is currently being looked at. Once I can tell that, I don't think I'll have much trouble doing the rest.

So, I am wondering:

  1. Does the Google Calendar API provide views information for sidebar gadgets? I think the answer is no but I'd like to be wrong.
  2. Is there any other way I might get this information, like say by looking up info from the page's DOM?

Thanks in advance! I might post this question elsewhere, but I will be sure to post the answer here regardless.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

天气好吗我好吗 2024-12-03 05:29:49

看来我需要的是 subscribeToEvents 。它就在我眼皮子底下的 API 文档中......

Looks like it's subscribeToEvents that I need. It was right under my nose in the API docs...

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