Google 日历源 - 仅显示今天的活动
这是我在 stackoverflow 上的第一篇文章。我的问题是如何更改谷歌日历提要,使其仅自动显示当天的事件?
基本上我想做的是将提要输出到仅显示今天事件的网页上。饲料会每天发生变化。我之前对其他提要(不是谷歌日历)做过类似的事情,除了在这些情况下,我会输出最新的“#”帖子。如果我只显示今天的事件,这是行不通的。
我在雅虎管道上进行了搜索,发现了一些用您必须输入的日期来过滤提要的地方。这是可行的,只是我希望能够使其自动,而不是让别人输入日期。阅读谷歌日历提要API,我也可以做一个日期范围,但这是同样的问题,我必须手动指定范围。有什么方法可以自动化该操作或其他替代方法吗?
我可以做一些 xslt 魔法吗?
感谢您的帮助!
This is my first post here at stackoverflow. My question is how to change the google calendar feed so that it only shows events for the current day automatically?
Basically what I want to do is output the feed onto a webpage that only shows events for today. The feed would change day by day. I've done something similar with other feeds (not google calendar) before except in those cases, I would be outputting the most recent "#" of posts. This wouldn't work if I were to show events for today only.
I've searched around on yahoo pipes and found a few where it filters the feed with a date that you have to input. This works except I want to be able to make it automatic instead of having someone input the date. Reading the google calendar feed api, there's also a date range I can do, but it's the same issue, I would have to specify the range by hand. Is there any way to automate that or some other alternative?
Is there some xslt magic I can do or something?
Thanks for the help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在 Yahoo Pipes 中执行此操作:
示例管道(仅显示未来 24 小时内开始的事件) :
You could do this in Yahoo Pipes:
An example pipe (shows only events starting within the next 24 hours):
这是由 gdata 的示例给出的
},
其中我认为您可以将最小时间和最大时间设置为同一天?
this is given by the sample of gdata
}
in which i think you can just set the minitime and maxtime to the same day?
您要做的就是设置 Atom feed 的 url 参数——start-min 为今天,start-max 为明天——另外,请注意,您需要经过身份验证才能使其正常工作。
What you do is set the url parameters for the atom feed -- start-min to today and start-max to tomorrow -- also, note you'll need to be authenticated in order for this to work.