更改现有日历活动系列的日期 [英] Change exisiting calendar event series date

查看:141
本文介绍了更改现有日历活动系列的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更改Google日历活动系列. API没有任何更改日期的方法.

I have a problem regarding the changing of dates of a Google Calendar Event series. The API doesn't have any methods for changing the dates.

有没有办法做到这一点?我正在创建一个表单,当您在电子表格中编辑请求的截止日期时,它还将编辑日历事件系列.

Is there a way I can do this? I am creating a form where when you edit the due date of the request in the spreadsheet, it will also edit the calendar event series.

推荐答案

您的陈述不正确,可以使用Google Calendar API更改或更新Google日历事件的日期.

Your statement is incorrect it is possible to change or update the date of a Google calendar event using the Google Calendar API.

选项nr 1:

您可以在包含要更新或修补的变量的正文中修补该事件.在这种情况下是日期.

You can patch the event in the body you include the variables you would like to update or patch. In this case date.

事件:补丁更新事件.

请求

PATCH https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events/{eventID}?key={YOUR_API_KEY}
{
 "start": {
  "dateTime": "2008-09-26T12:01:00+02:00"
 }
}

回复

200好

选项nr 2

另一种选择是先使用 Events.get 使事件更改所需的内容,然后执行 events.update .这将对事件中的所有内容进行更新.虽然补丁程序只是更改了您需要的内容.

Another option would be to first use Events.get to get the event change what you need then do events.update. This will do an update on everything in the event. While Patch just changes one what you need.

这篇关于更改现有日历活动系列的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆