我可以创建一个链接,用信息填充我的 Google 日历,如下所示......
<a href="http://www.google.com/calendar/event?action=TEMPLATE&text=MyEvent&dates=20150701T000000Z/20160305T000000Z&details=Test&location=Somewhere">Add to Google Calendar</a>
...效果很好。但是,如何创建一个功能相同但适用于基于 Web 的 Outlook Office 365 日历的日历?有关如何做到这一点的信息出人意料地稀少。
我不知道这方面的官方文档,但我相信链接格式应该如下:
https://outlook.office.com/calendar/0/deeplink/compose?body=description&enddt=2022-04-01T13%3A30%3A00%2B00%3A00&location=location&path=%2Fcalendar%2Faction%2Fcompose&rru=addevent&startdt=2022-04-01T13%3A00%3A00%2B00%3A00&subject=title
或者使其更具可读性:
https://outlook.office.com/calendar/0/deeplink/compose
?body=description
&enddt=2022-04-01T13%3A30%3A00%2B00%3A00
&location=location
&path=%2Fcalendar%2Faction%2Fcompose
&rru=addevent
&startdt=2022-04-01T13%3A00%3A00%2B00%3A00
&subject=title
上面的日期时间是 URL 编码的,因此编码之前如下所示:
2022-04-01T13:30:00+00:00
应该是不言自明的 (yyyy-mm-ddThh:mm:ss+zz:zz) + 之后的最后一位是与时区 UTC (hh:mm) 的时间偏移。
Source:
https://www.labnol.org/apps/calendar.html https://www.labnol.org/apps/calendar.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)