我不清楚在网站上 Build 链接的确切格式,该链接会将单个事件添加到用户Google日历中 . 我看到eventbrite在这里完成了它,但我希望在正确的方向上有一些明确的规格或链接
http://www.eventbrite.com/event/1289487893
http://screencast.com/t/6vvh1khS
以下是可用于查看格式的示例链接:
https://www.google.com/calendar/render?action=TEMPLATE&text=Your+Event+Name&dates=20140127T224000Z/20140320T221500Z&details=For+details,+link+here:+http://www.example.com&location=Waldorf+Astoria,+301+Park+Ave+,+New+York,+NY+10022&sf=true&output=xml
注意关键查询参数:
text dates details location
这是另一个例子(取自http://wordpress.org/support/topic/direct-link-to-add-specific-google-calendar-event):
<a href="http://www.google.com/calendar/event? action=TEMPLATE &text=[event-title] &dates=[start-custom format='Ymd\\THi00\\Z']/[end-custom format='Ymd\\THi00\\Z'] &details=[description] &location=[location] &trp=false &sprop= &sprop=name:" target="_blank" rel="nofollow">Add to my calendar</a>
这是一个表格,可以帮助你构建这样一个链接,如果你想(在前面的答案中提到):
https://support.google.com/calendar/answer/3033039编辑:此链接不再为您提供可以使用的表单
1 回答
以下是可用于查看格式的示例链接:
https://www.google.com/calendar/render?action=TEMPLATE&text=Your+Event+Name&dates=20140127T224000Z/20140320T221500Z&details=For+details,+link+here:+http://www.example.com&location=Waldorf+Astoria,+301+Park+Ave+,+New+York,+NY+10022&sf=true&output=xml
注意关键查询参数:
这是另一个例子(取自http://wordpress.org/support/topic/direct-link-to-add-specific-google-calendar-event):
这是一个表格,可以帮助你构建这样一个链接,如果你想(在前面的答案中提到):
https://support.google.com/calendar/answer/3033039编辑:此链接不再为您提供可以使用的表单