【问题标题】:Google Calendar API - cannot create Google Hangout link with eventNamedHangoutGoogle Calendar API - 无法使用 eventNamedHangout 创建 Google Hangout 链接
【发布时间】: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


    【解决方案1】:
    • 如果您是 G Suite 用户,eventNamedHangout 是您的正确选择

    不要因为获得 Google Meet link 而不是Google Hangout link 而感到推迟

    引用自googleblog

    今年晚些时候,我们将在 G Suite 上转换传统版环聊用户 域聊天和见面

    有关 Google Meet 的更多信息:hereherehere

    【讨论】:

    • 感谢您的回答!从博客文章中,我了解到我的目的是在 Hangouts Chat 中创建一个房间,而不是 Hangouts Meet 链接。我已在 stackoverflow.com/questions/60724078/… 上阅读了您的回答,很遗憾,我们目前无法以编程方式创建环聊聊天室。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-19
    • 1970-01-01
    • 1970-01-01
    • 2020-10-08
    • 1970-01-01
    相关资源
    最近更新 更多