如何通过Calendar API为创建的日历事件添加Google Meet链接
解决Google Calendar API创建事件不生成Google Meet链接的问题
你的请求能成功创建事件但未生成Meet链接,核心原因是没有在请求的查询参数中指定conferenceDataVersion=1——Google Calendar API默认不会处理会议数据相关字段,必须显式设置这个参数为1,才会解析conferenceData并生成Meet链接。
具体修改步骤
- 添加查询参数:在请求URI末尾追加
?conferenceDataVersion=1,完整请求URI变为:https://www.googleapis.com/calendar/v3/calendars/{calendarId}/events?conferenceDataVersion=1 - 保留原Payload不变:你当前的Payload格式完全正确,
conferenceData内的createRequest配置符合要求,requestId只要是唯一字符串即可(你使用的sofhoi4oin满足条件)。
验证要点
- 确认OAuth 2.0 Playground中已添加正确的Calendar API权限(
https://www.googleapis.com/auth/calendar或https://www.googleapis.com/auth/calendar.events) - 发送请求时,检查查询参数
conferenceDataVersion=1已正确携带
完成以上修改后重新发送请求,创建的事件就会自动关联Google Meet链接。
内容的提问来源于stack exchange,提问作者Nuvindu Nirmana
相关产品推荐
相关产品推荐

