I am trying to create a Google Hangout link and insert it into a calendar event for a G-Suite account. My script is calling Calendar.Events.insert with below payload.
From the documentation I need to use eventNamedHangout as the type of conferenceSolutionKey but the API responded back with a Google Meet link instead.
I tried eventHangout but I am getting "invalid conference type value" error which I believe I should not use eventHangout as the type.
How can I create a Hangout link for this account?
payload = {
"calendarId": "primary",
"conferenceDataVersion": 1,
"maxAttendees": 10,
"sendNotifications": true,
"sendUpdates": "all",
"summary": 'My Event Summary',
"description": 'My Event Description',
"end": {
"date": someDate1,
"timeZone": "America/New_York"
},
"start": {
"date": someDate2,
"timeZone": "America/New_York"
},
"conferenceData": {
"createRequest": {
"conferenceSolutionKey": {
"type": "eventNamedHangout"
},
"requestId": someRandomString
}
}
}