Google 日历 API - 无法使用 eventNamedHangout 创建 Google 环聊 link
Google Calendar API - cannot create Google Hangout link with eventNamedHangout
我正在尝试创建一个 Google 环聊 link 并将其插入到 G-Suite 帐户的日历活动中。我的脚本使用以下负载调用 Calendar.Events.insert。
从 documentation 我需要使用 eventNamedHangout 作为 conferenceSolutionKey 的类型,但 API 用 Google Meet link 代替。
我试过 eventHangout 但我收到 "invalid conference type value" 错误,我认为我不应该使用 eventHangout 作为类型。
如何为此帐户创建视频群聊link?
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
}
}
}
- 如果您是 G Suite 用户,
eventNamedHangout
是您的正确选择
不要因为获得 Google Meet link
而不是 Google Hangout link
而感到被推迟
引自googleblog:
Later this year, we'll transition classic Hangouts users on G Suite
domains to Chat and Meet
我正在尝试创建一个 Google 环聊 link 并将其插入到 G-Suite 帐户的日历活动中。我的脚本使用以下负载调用 Calendar.Events.insert。
从 documentation 我需要使用 eventNamedHangout 作为 conferenceSolutionKey 的类型,但 API 用 Google Meet link 代替。
我试过 eventHangout 但我收到 "invalid conference type value" 错误,我认为我不应该使用 eventHangout 作为类型。
如何为此帐户创建视频群聊link?
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
}
}
}
- 如果您是 G Suite 用户,
eventNamedHangout
是您的正确选择
不要因为获得 Google Meet link
而不是 Google Hangout link
而感到被推迟
引自googleblog:
Later this year, we'll transition classic Hangouts users on G Suite domains to Chat and Meet