Does the Google Calendar API view / edit rooms / resources?

Is there a way using the Google Calendar API to see what numbers were booked when I received the meeting through the API?

Is there also a way to add a room resource to a meeting via the calendar API?

+6
source share
3 answers

The fact that you use resources on a Google calendar tells me that you are a Google Apps for Business / Education user.

If you need a list of resources in your organization, you need to use the Google Apps Calendar Resource API . You can also use this API to create new resources.

If you want to indicate the availability of a calendar resource, you need to use the Google Calendar API. You need to request the API using a username that has the appropriate permissions to view the resource calendar. The calendar resource ID looks like an email address ending in @ resource.calendar.google.com

You will also notice that resources are listed among the participants in your event.


Now the bad news

At the time of writing (October 2013), the Google Apps Calendar Resource API uses Atom / OAuth 1.0a, while the Google Calendar API 3 uses JSON / OAuth 2.0.

So, this means that currently you need to implement two different authentication mechanisms and two different API styles, fun eh?

Since Google has been discouraged by OAuth 1.0a support, I’m sure they have stopped rewriting the Google Apps calendar resource APIs to become JSON / OAuth 2.0 compatible (I can ask a question here to ask about it!).

Update

See my question for information on the Google Apps Calendar Resource API resource:

Probable lifetime of the Google Apps Calendar API v1 Resource (Atom / OAuth 1.0)?

+4
source

I just tried it - it works fine (returns an array of given dates for each resource identifier, after all, if such an array is empty - the resource is available for you . Get Boolean values, but still ..)

So you need to use the following API .

  • Go to the try section

  • Sign in with oauth

  • Insert the request below (Replace resource identifiers with an existing one)

Request Code:

{ "maxResults": 10, "timeMin": "2013-11-27T00:00:00+02:00", "timeMax": "2013-12-27T23:59:59+02:00", "items": [ { "id": " RESOURCE_ID_1@resource.calendar.google.com " }, { "id": " RESOURCE_ID_2@resource.calendar.google.com " }, { "id": " RESOURCE_ID_3@resource.calendar.google.com " } ] } 
+4
source

Have you tried to request information about a free / busy resource (https://developers.google.com/google-apps/calendar/v3/reference/freebusy/query)?

You can update the meeting room’s resource by updating the event (https://developers.google.com/google-apps/calendar/v3/reference/events/update).

Hope this gives you some good ideas.

+3
source

All Articles