日历对象的汇总值

时间:2020-01-09 06:40:16

标签: google-api google-calendar-api

我认识到CalendarList的返回已更改。摘要值是人的名字,但现在它返回电子邮件地址。

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

经测试的网址: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",

1 个答案:

答案 0 :(得分:1)

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

主日历上的Calendar.get返回

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

文档指出日历资源应返回

summary =日历的标题。

enter image description here