4
votes

I have configured in my google account application following CalDAV and Google Calendar API instructions.

As result I have turned on 2 APIs for my application

  • CalDAV API;
  • Google Calendar API (GC API).

I have created token to get access via my personal client to google calendar information. Using quick start guide I have loaded only my personal calendar events. I have investigated other java samples but I did not find how to load calendars of different users.

Is it possible to load someones calendar information via CalDAV\GC API with java client? Which clients information I should have got to load clients data (accept loginName)? Can I have a link to get more information about loading users' calendar events to view & manage its from external applications?

1

1 Answers

1
votes

To get the other users Calendar Events, Note: You must be an authenticated user that has a permission to access the other calendar events. By using this Events: list you can try here to get the other users calendar event by passing the calendarId of the other user in the calendarId parameter.

There is a Java example code here that you can follow. The "primary" word here means that you will access your own calendar, just change it to the calendarId of the user to get its own calendar event.

If you want to list Google Calendar Events without the User Authentication, then this SO question can help you with that. It use a Service Account to access the other user calendar.

Hope it helps you.