日历对象的汇总值

Summary value of calendar object

我发现 CalendarList 的 return 发生了变化。汇总值是人名,但现在是 return 的电子邮件地址。

我的问题是如何使用日历 API 获取日历名称?

测试url:https://developers.google.com/calendar/v3/reference/calendarList/list

◆ 之前

{
 "kind": "calendar#calendarList",
 "items": [
  {
   "kind": "calendar#calendarListEntry",
   "etag": "\"1578551131788000\"",
   "id": "test@test.com",
   "summary": "Test Calendar", // <-- calendar's name
   "timeZone": "Asia/Tokyo",

◆现在

{
 "kind": "calendar#calendarList",
 "items": [
  {
   "kind": "calendar#calendarListEntry",
   "etag": "\"1578551131788000\"",
   "id": "test@test.com",
   "summary": "test@test.com", // <-- email address
   "timeZone": "Asia/Tokyo",

目前 Google 日历中存在错误。它没有 return 摘要中的标题,因为它被记录为 Bug report can be found here.

Calendar.get 在我的主日历上 returns

{
 "kind": "calendar#calendar",
 "etag": "\"KfTgGrEyu1otuO_8YfN8ka6X3tg\"",
 "id": "xxx@gmail.com",
 "summary": "xxxx@gmail.com",
 "description": "test",
 "timeZone": "Europe/Copenhagen",
 "conferenceProperties": {
  "allowedConferenceSolutionTypes": [
   "eventHangout"
  ]
 }
}

文档指出日历资源应该 return

summary = Title of the calendar.