【发布时间】:2020-06-17 01:01:42
【问题描述】:
我正在尝试创建一个 Google Hangout 链接并将其插入到 G-Suite 帐户的日历活动中。我的脚本使用以下有效负载调用 Calendar.Events.insert。
在documentation 中,我需要使用 eventNamedHangout 作为 conferenceSolutionKey 的类型,但 API 以 Google Meet 链接作为回应。
我尝试了 eventHangout,但我收到“无效的会议类型值”错误,我认为我不应该使用 eventHangout 作为类型。
如何为此帐户创建环聊链接?
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
}
}
}
【问题讨论】:
标签: google-apps-script google-calendar-api