Google日历呈现动作模板参数文档

Hue*_*Tan 53 documentation calendar document google-calendar-api

我们可以使用这个链接add a new eventGoogle Calendar通过parameters

https://www.google.com/calendar/render?
action=TEMPLATE&
text=EventName&
dates=20131206T050000Z/20131208T060000Z
&location=EventLocation&
sprop=name:Name&
sprop=website:EventWebite&
details=EventDetail&
sf=true&
output=xml
Run Code Online (Sandbox Code Playgroud)

但我找不到有关这些参数的任何文档.

有谁知道它在哪里?

sno*_*_15 55

有关可用参数的说明:

anchor address:
http://www.google.com/calendar/event?
This is the base of the address before the parameters below.


action:
    action=TEMPLATE
    A default required parameter.

src:
    Example: src=default%40gmail.com
    Format: src=text
    This is not covered by Google help but is an optional parameter
    in order to add an event to a shared calendar rather than a user's default.

text:
    Example: text=Garden%20Waste%20Collection
    Format: text=text
    This is a required parameter giving the event title.

dates:
    Example: dates=20090621T063000Z/20090621T080000Z 
           (i.e. an event on 21 June 2009 from 7.30am to 9.0am 
            British Summer Time (=GMT+1)).
    Format: dates=YYYYMMDDToHHMMSSZ/YYYYMMDDToHHMMSSZ
           This required parameter gives the start and end dates and times
           (in Greenwich Mean Time) for the event.

location:
    Example: location=Home
    Format: location=text
    The obvious location field.

trp:
    Example: trp=false
    Format: trp=true/false
    Show event as busy (true) or available (false)

sprop:
    Example: sprop=http%3A%2F%2Fwww.me.org
    Example: sprop=name:Home%20Page
    Format: sprop=website and/or sprop=name:website_name

add:
    Example: add=default%40gmail.com
    Format:  add=guest email addresses
Run Code Online (Sandbox Code Playgroud)

http://useroffline.blogspot.com/2009/06/making-google-calendar-link.html

  • 这些参数仍然有效.为了帮助一点,`trp`代表RFC 5545所谓的"透明度".上面描述的值对我来说似乎很落后,但谷歌做了他们自己的事情.您还可以通过`recur`参数传递URL编码的RRULE或RDATE属性值(*例如*,URL编码版本的`RRULE:FREQ = MONTHLY; BYDAY = 2SU`将在第二个星期日每月重复一次)设置重复发生的事件. (6认同)
  • 日期也可以不经时给出 - 例如`dates = 20090621/20090621`.Google日历会将此解释为全天活动. (6认同)
  • 虽然此链接可能会回答这个问题,但最好包括答案的基本部分[此处](http://meta.stackoverflow.com/a/8259)并提供链接以供参考.如果链接的页面发生更改,则仅链接的答案可能会无效. (2认同)
  • 还有一个附加字段`details`,它允许您指定事件的描述(事件正文文本)。 (2认同)
  • 有谁知道是否存在添加提醒或多个提醒的参数? (2认同)
  • 好的,我已经对此进行了几天的调查,看起来 Google 日历无法通过 URL 添加提醒。此设置位于 calendar.google.com 设置 -> 设置 -> 在左侧选择所需的日历 -> 事件通知。之后为该日历创建的每个 Google 日历事件都将具有相同的通知设置。 (2认同)

Den*_*aia 16

链接snoopy_15的答案指向一个老谷歌URL当前正在重定向到新的谷歌支持页面.这个新页面没有解释如何生成此问题中提到的那种链接.

但是,由于Internet Archive:Wayback Machine的奇迹,旧页面仍然存档并可用!

最新的可用版本是从2012年3月开始的,它包含一个包含简单JavaScript代码的表单,但仍然有效!当然,这不是一个官方文档(我仍然在寻找一个),这甚至不是一个文档(它是一个带脚本的交互式表单),但它是我能得到的最接近的文档.

  • 有一个包含所有已知参数列表的 github 存储库:https://github.com/InteractionDesignFoundation/add-event-to-calendar-docs/blob/master/services/google.md (3认同)

squ*_*ndy 10

这些是我在创建这些链接时使用的参数.还有其他参数存在,但我发现它们没有用,它们是可选的.有关日期如何工作的详细信息特别令人烦恼,并且谷歌从未充分记录.

  • action = TEMPLATE(必填)
  • text(url编码的事件名称)
  • 日期(ISO日期格式,startdate/enddate - 必须同时包含开始和结束时间,否则它将无效.如果合适,开始日期和结束日期可以相同.)
    • 使用用户的时区:20161208T160000/20161208T180000
    • 使用全球时间,转换为UTC,然后使用20131208T160000Z/20131208T180000Z
    • 全天活动,你可以使用20161208/20161209 - 请注意旧的谷歌文档错了.您必须使用以下日期作为一天全天活动的结束日期,或者您希望结束日期的+1天.
  • 详细信息(网址编码事件描述/详细信息)
  • location(url编码事件的位置 - 确保它是一个地址谷歌地图可以轻松阅读)