0

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?

jdev
  • 569
  • 5
  • 25

1 Answers1

0

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!

Andres
  • 671
  • 4
  • 9
  • What I need is to get the list of `Calendar Resources`... This way I´d be retrieving upcoming events for a given `CalendarId`; The equivalent to `GET https://apps-apis.google.com/a/feeds/calendar/resource/2.0/{domain name}/` – jdev Dec 17 '15 at 10:57
  • This is unclear to me- you mentioned that you can see the calendar resources and other kinds of calendars, but you still need to get list of Calendar Resources. Can you provide some use case and maybe some examples or calls to API you're making? – Andres Dec 18 '15 at 00:18
  • I´ve updated my question with a more detailed explanation to see if you can understand me better now. With the whole list of calendars I don´t know how to know which ones are resources and which aren´t, by any other mean that filtering by known names, which doesn´t seem the most reliable way to do this – jdev Dec 18 '15 at 11:22