Jungmo Kang
Jungmo Kang

Reputation: 23

Summary value of calendar object

I recognized that the return of CalendarList has changed. the summary value was person's name but now it returns email address.

my question is how can I get calendar name using calendar API?

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

◆ Before

{
 "kind": "calendar#calendarList",
 "items": [
  {
   "kind": "calendar#calendarListEntry",
   "etag": "\"1578551131788000\"",
   "id": "[email protected]",
   "summary": "Test Calendar", // <-- calendar's name
   "timeZone": "Asia/Tokyo",

◆Now

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

Upvotes: 2

Views: 106

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116868

There is currently a bug in Google calendar. its not returning the title in the summary as it is documented to do Bug report can be found here.

Calendar.get on my primary calendar returns

{
 "kind": "calendar#calendar",
 "etag": "\"KfTgGrEyu1otuO_8YfN8ka6X3tg\"",
 "id": "[email protected]",
 "summary": "[email protected]",
 "description": "test",
 "timeZone": "Europe/Copenhagen",
 "conferenceProperties": {
  "allowedConferenceSolutionTypes": [
   "eventHangout"
  ]
 }
}

The documentation states that a calendar resource should return

summary = Title of the calendar.

enter image description here

Upvotes: 1

Related Questions