更新日历中的谷歌事件,无需谷歌API。 C#

问题描述 投票:0回答:0

我有一个要求,我必须在电子邮件中添加一个按钮。单击后,它会打开谷歌,要求提供凭据,然后将该事件添加到用户的日历中。这是我的代码

  <tr style="display:none;">
                <td width="300" style="width:225.0pt; background:#313131; padding:0in 0in 0in 0in; height:30.0pt; border-radius:3px">
                    <p class="x_MsoNormal" align="center" style="text-align:center">
                        <span style="font-family:Arial,sans-serif; color:white">
                            <a href="@Model.GoogleLink" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable" data-linkindex="10">
                                <span style="color:white; text-decoration:none">Add to Google Calendar</span>
                            </a>
                        </span>
                    </p>
                </td>
            </tr>

这是我的谷歌链接: https://www.google.com/calendar/event?action=TEMPLATE&text=Piercing+Studio+约会+(Ossington+Piercing+Studio)&dates=20230716T202000Z/20230716T204000Z&location=64+Ossington+Avenue、+多伦多、+安大略省、+M6J2Y7&details= 64+Ossington+Avenue,+多伦多,+安大略省,+M6J2Y7%0A%0A查看/更改+预约:%0Ahttps://app.acuityscheduling.com/schedule.php?owner%3D28316543%26id%255B%255D%3D87dc83cf48dc52001b1dd5f79ce9b0ef%2 6action%3Dappt%0A%0A(创建者+Acuity+调度)%0AAcuityID%3D1071322728%0AGoogle&sf=true&output=xml&pli=1

如果事件已经在日历中,有什么方法可以更新该事件吗?

c# html google-calendar-api
© www.soinside.com 2019 - 2024. All rights reserved.