calendar - 创建 "Add to Google Calendar"链接需要哪些参数?

标签 calendar documentation google-calendar-api document

我们可以使用这个link通过参数Google日历添加新事件

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)

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

关于calendar - 创建 "Add to Google Calendar"链接需要哪些参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22757908/

相关文章:

documentation - 使用 Sphinx 显示 html 文档是否需要 doctrees 文件夹?

node.js - 将新的 Google 日历应用程序的应用程序名称从 "quickstart"更改为

php - 通过 Google Calendar API 获取 Google Calendar 的时区

calendar - 如何设置richfaces日历的宽度?

java - GWT Date 相当于 java.util.Calendar

mysql - MySQL中的日期字段,查找所有不重叠的行并仅返回差异

c# - 无法创建 Google.Apis.Services.BaseClientService 的实例

java - 将时间戳转换为天数并返回会导致不同的日期

database - 有没有关于 Apache Cassandra 的终极好文档?

c# - 无效的 XML 注释 : invalid character