Search code examples
google-calendar-api

Using API to create a Google Calendar event and conference accessible without Asking to join


I am able to create a google calendar with conference using the following code:

Event event = new Event()
.setSummary(calevent.getTitle())
.setDescription(calevent.getDescription());

ConferenceSolutionKey conferenceSolutionKey = new ConferenceSolutionKey().setType("hangoutsMeet");
CreateConferenceRequest createRequest = new CreateConferenceRequest().setRequestId("xxsdswwadx")
.setConferenceSolutionKey(conferenceSolutionKey);
ConferenceData conferenceData = new ConferenceData().setCreateRequest(createRequest);
event.setConferenceData(conferenceData);

DateTime startDateTime = convertDate(calevent.getStartDateTime());
EventDateTime start = new EventDateTime()
.setDateTime(startDateTime)
.setTimeZone("Europe/London");
event.setStart(start);

DateTime endDateTime = convertDate(calevent.getEndDateTime());
EventDateTime end = new EventDateTime()
.setDateTime(endDateTime)
.setTimeZone("Europe/London");
event.setEnd(end);

But this does not allow invitees to join without waiting for moderator to accept them. On google calendar, there's a settings for conferences called 'Quick Access' that when turned off, allows anyone to join without having to be approved.

Can this be set when creating the conference?


Solution

  • Answer:

    I don't think you can manage these settings via Calendar API. None of its resources include any field related to this.

    Feature request:

    I couldn't find any related feature request in Issue Tracker.

    Therefore, if you're interested in this, I'd suggest you to request this feature using the corresponding Issue Tracker template.