Google 日历小工具需要知道当前正在查看哪个事件
我现在正在编写我的第一个 Google 日历侧边栏小工具。当用户在 Google 日历中时,我计划让他们打开一个事件,当他们在查看/编辑页面时,它将使用该事件的数据来查找其他类似的事件。
问题是,我无法找到一种方法来知道当前正在查看哪个事件。一旦我能说出这一点,我认为剩下的事情就不会有太大困难了。
所以,我想知道:
- Google Calendar API 是否提供侧边栏小工具的视图信息?我认为答案是否定的,但我宁愿错了。
- 有没有其他方法可以获取此信息,例如通过从页面的 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:
- Does the Google Calendar API provide views information for sidebar gadgets? I think the answer is no but I'd like to be wrong.
- 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看来我需要的是 subscribeToEvents 。它就在我眼皮子底下的 API 文档中......
Looks like it's subscribeToEvents that I need. It was right under my nose in the API docs...