Calendar 需要哪些参数来创建一个";“添加到谷歌日历”;链接

Calendar 需要哪些参数来创建一个";“添加到谷歌日历”;链接,calendar,documentation,google-calendar-api,document,Calendar,Documentation,Google Calendar Api,Document,通过参数 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& o

通过
参数

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
但是我找不到关于这些参数的任何文档


有人知道它在哪里吗?

有关可用参数的说明:

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

details: (extra)
    Example: details=Event%20multiline%0Adetails
    Format:  details=description text (google also accepts html in this text)

从当前重定向到的点。这个新页面没有解释如何生成这个问题中所问的链接类型

然而,感谢的奇迹,这个


,它包括一个表单,其中包含一个简单的JavaScript代码,仍然可以工作!当然,这不是官方文档(我还在寻找),甚至也不是文档(这是一个带有脚本的交互式表单),但这是我能得到的最接近的文档。

您还有一个用于指定来宾的参数

Add:
    Example: add=default%40gmail.com
    Format:  add=guest email addresses


这些是我创建这些链接时使用的参数。还有其他的参数存在,但我不认为它们有用,它们是可选的。关于日期如何工作的细节尤其令人烦恼,谷歌从未充分记录过

  • 操作=模板(必需)
  • 文本(事件的url编码名称)
  • 日期(ISO日期格式,startdate/enddate-必须同时具有开始和结束时间,否则将不起作用。如果合适,开始和结束日期可以相同。)
    • 要使用用户的时区:20161208T160000/20161208T180000
    • 要使用全局时间,请转换为UTC,然后使用20131208T160000Z/20131208T180000Z
    • 全天活动,您可以使用20161208/20161209——请注意,旧的谷歌文档是错误的。必须使用以下日期作为一天全天活动的结束日期,或使用+1天作为结束日期
  • 详细信息(url编码的事件描述/详细信息)
  • 位置(事件的url编码位置-确保它是谷歌地图可以轻松读取的地址)

我也有同样的问题。也许,文件并不存在。很久以前,官方文件存在。谷歌将其替换为现有谷歌日历中关于共享活动的信息:-/现在不推荐了吗?因为我为我工作,但停止工作…@AralRoca此链接仍然有效!有一个github repo,其中包含所有已知参数的列表:这些参数仍然有效。稍有帮助的是,
trp
代表RFC5545所称的“透明度”。上面描述的价值观在我看来是落后的,但是谷歌做了他们自己的事情。您还可以通过
recur
参数传递带有值的URL编码的RRULE或RDATE属性(例如,URL编码版本的
RRULE:FREQ=MONTHLY;BYDAY=2SU
将每月在第二个星期日重复),以设置重复事件。也可以不带时间地给出日期-例如
dates=20090621/20090621
。Google Calendar会将其解释为全天事件。另外还有一个字段
详细信息
,允许您指定事件描述(事件正文文本)。有人知道是否存在添加提醒或多个提醒的参数吗?好的,我已经调查了几天了,似乎谷歌日历无法通过URL添加提醒。此设置位于calendar.google.com settings->settings->选择左侧的所需日历->事件通知。之后为该日历创建的每个Google日历事件都将具有相同的通知设置。这太棒了!您是否知道
sf
参数的偶然用途?我不知道
sf
有什么作用,但是如果您通过实验发现了,请告诉我们!很明显,谷歌已经不再记录或支持这一点,尽管它目前仍然有效。谷歌曾经有一个文档页面,但它已经被删除了。当我第一次加入时,我曾经很困惑,人们对链接式答案的态度有多么咄咄逼人,但我现在明白了!有一个包含所有已知参数列表的github repo: