我知道這是一個老問題,但因爲我最近才遇到了同樣的問題,我想這可能有助於增加這個答案:
在.net中我使用Google.Apis.Calendar.v3遇到同樣的問題。我發現當我指定「OriginalStartDateTime」時,我的「復發」沒有被Google的API評估。
下面是我使用的代碼示例。
var e = new Event
{
Description = "TEST EVENT",
Location = "Computer",
Summary = "Test Event. Safe to delete.",
Start = new EventDateTime{DateTime = new DateTime(2017,05,16, 3, 30, 00), TimeZone = "America/Chicago"}, // This is used as the OriginalStartTime
End = new EventDateTime{DateTime = new DateTime(2017,05,16, 4, 00, 00), TimeZone = "America/Chicago"}, // This is used as the OriginalStartTime
ICalUID = Guid.NewGuid().ToString(),
Organizer = new Event.OrganizerData
{
DisplayName = "Test Event"
},
Recurrence = new [] { "RRULE:FREQ=WEEKLY;BYDAY=TU,TH;UNTIL=20180701T170000Z" },
// When set, event does not repeat.
OriginalStartTime = null // new EventDateTime{DateTime = new DateTime(2017,05,16), TimeZone="America/Chicago"}
};
... GET SERVICE CODE ...
var request = googleCalendarService.Events.Import(e, GoogleCalendarId);
var result = request.Execute();
return result;