Google Calendar Resources iOS SDK

211 Views Asked by At

I´m using the google-api-objectivec-client for iOS to get the list of Calendars.

While I can see the calendars for resources (like rooms, etc..), I see other kind of calendars, such as the personal calendar of the user, or the "National holidays" calendar or "birthdays" calendar. Thus needing to filter out these calendars that aren´t resources.

I´ve found this Calendar Resource API which returns the list of the specific calendars for resources only, using https://apps-apis.google.com/a/feeds/calendar/resource/2.0/MYDOMAIN.com/ as a regular HTTP GET call using AFNetworking instead of Google´s SDK.

But I haven´t found a way to retrieve just the specific calendars for resources using GTLQueryCalendar nor a specific class for Calendar Resources.

Is there other class in the sdk or maybe another sdk that I could use for this purpose? How could I use it?

1

There are 1 best solutions below

3
Andres On

Yes, it can be done with the GTLQueryCalendar. Here is how:

This will retrieve a list of upcoming events from the specify calendarID

GTLQueryCalendar *query = [GTLQueryCalendar queryForEventsListWithCalendarId:@"calendarId"];
}

You can find the complete example from the iOS Quickstart. Good luck!