Search code examples
google-calendar-apihangouts-apigoogle-hangouts

Cannot add a hangout meet in google calendar


I'd like to add a hangout meet in my google calendar when I insert the event

here is what I set

ConferenceData conferenceData = new ConferenceData();
CreateConferenceRequest createRequest = new CreateConferenceRequest();
createRequest.setRequestId("3qpalsoyh6");
conferenceData.setCreateRequest(createRequest);
conferenceData.setConferenceId("3qpalsoyh6");
event.setConferenceData(conferenceData);

I have right summary, time....

How to add a Hangouts meet in side!?

And is it possible to assign the host of the hangouts meet to one of the attendees instead of the account which cinsert the event !?

Can anyone help pls! Thanks


Solution

  • You are missing the parameter conferenceSolutionKey

    It is necessary to specify the conferenceData.createRequest.conferenceSolutionKey.type to add the Hangouts meeting.

    The value for type is eventHangout if you have a consumer account or eventNamedHangout if you are a GSuite User.