In Google Calendar, one can see 2 categories of calendars namely, My calendars
and Other Calendars
. Is there a way to determine which calendars belong to My calendars
and Other calendars
using Google Calendar API?
I looked at the response from gapi.client.calendar.events.list
but was unable to find anything that specifies which category a calendar belongs to.
My Calendars
is a primary calendar while theOther Calendars
is a secondary calendar. See Calendar and Events. To know whether the calendar is on the primary calendar or not you can use theCalendarList
resource which returns a response withprimary
property which will return true if the calendar is in primary and false otherwise. – gerardnimo