Reputation: 261
Google calendar resource 'calendars' had a list() method in v1 , which has since been deprecated in v3. The alternative suggestion was to use Google Apps Calendar Resource API, which would soon be deprecated. What's a reliable way to retrieve a list of all resources such as all conference rooms in a company that a user has access to?
Upvotes: 1
Views: 1188
Reputation: 6791
If it is under Google Calendar API, use CalendarList()
Check Overview of the Calendar API
Calendar — A calendar is a collection of events. Each calendar has associated metadata, such as calendar description or default calendar time zone. The metadata for a single calendar is represented by a Calendar resource. The Calendars collection contains Calendar resources for all existing calendars.
Calendar List — A list of all calendars on a user's calendar list in the Calendar UI. The metadata for a single calendar that appears on the calendar list is represented by a CalendarListEntry resource. This metadata includes user-specific properties of the calendar, such as its color or notifications for new events. The CalendarList collection contains all CalendarListEntry resources for a given user. For a further explanation of the difference betweeen the Calendars and CalendarList collections, see Calendar and Calendar List
HTTP request
GET https://www.googleapis.com/calendar/v3/users/me/calendarList
But if you are talking about Admin SDK:
Click the link Calendar Resource.
Retrieves a list of calendar resources for an account.
HTTP request
GET https://www.googleapis.com/admin/directory/v1/customer/customer/resources/calendars
Upvotes: 0