0
我最近注意到,使用.NET的復發停止工作(不知道是否停止在其他語言庫中工作)。.NET谷歌日曆api v3復發不起作用
這段代碼在一年多的時間裏運行得非常完美,但突然間它沒有保存再發生,它保存了事件,但作爲單個實例,這是一段使用OAuth2的代碼,非常簡單復發的規則是在谷歌創建的事件,所以就沒有錯誤),這段代碼保存事件不復發:
Google.Apis.Calendar.v3.Data.Event entry = new Google.Apis.Calendar.v3.Data.Event();
string recurrenceRule = "RRULE:FREQ=DAILY;UNTIL=20130906T222536Z";
entry.Summary = "Test RO2";
entry.Description = "from prototype2";
entry.Location = "Home2";
// Dummy start and end datetime, timezone GMT -4 (my timezone)
string startTime = String.Format("{0:s}", DateTime.Now);
string endTime = String.Format("{0:s}", DateTime.Now.AddMinutes(30));
EventDateTime starting = new EventDateTime() {
DateTime = startTime,
TimeZone = "America/La_Paz"
};
EventDateTime ending = new EventDateTime()
{
DateTime = endTime,
TimeZone = "America/La_Paz"
};
entry.Start = starting;
entry.End = ending;
entry.Recurrence = new List<string>(){
recurrenceRule
};
entry.OriginalStartTime = starting;
// The event is saved, but it returns with no recurrence and no exception
Google.Apis.Calendar.v3.Data.Event eventCreated = _service.Events.Insert(entry, calendarId).Fetch();
請讓我知道,如果有人知道修補程序或解決方法,如果你還擁有與其他庫(PHP,Ruby,Python,Java等)相同的問題