135

ユーザーの Google カレンダーに 1 つのイベントを追加するリンクを Web サイトに表示する正確な形式については不明です。eventbrite がここでそれを行っていることがわかりますが、明確な仕様や正しい方向へのリンクが欲しいです

http://www.eventbrite.com/event/1289487893

http://screencast.com/t/6vvh1khS

4

4 に答える 4

266

形式を確認するために使用できるリンクの例を次に示します。

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+アストリア、+301+パーク+アベニュー+、+ニュー+ヨーク、+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/render?
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 編集: このリンクからは使用できるフォームが提供されなくなりました

于 2014-02-09T00:28:49.693 に答える