我正在尝试使用Google Calendar API v3插入calendarList
请求正文包含
conferenceProperties允许conferenceProperties.allowedConferenceSolutionTypes[]作为列表{eventHangout,eventNamedHangout,hangoutsMeet}

当我尝试使用任何conferenceProperties.allowedConferenceSolutionTypes[]进行插入时,请求均引发“ 400错误请求”。
但是幸运的是,当请求不包含conferenceProperties.allowedConferenceSolutionTypes[]时,它可以工作。

为什么不能将“ eventHangout”选择为conferenceProperties.allowedConferenceSolutionTypes[]

Error: 400 bad request
"domain": "global",
"reason": "invalid",
"message": "Invalid Value"


HTTP: POST
https://www.googleapis.com/calendar/v3/users/me/calendarList
request body:
{
  "id": "[email protected]",
  "kind": "calendar#calendarListEntry",
  "summaryOverride": "",
  "colorId": "18",
  "backgroundColor": "#b99aff",
  "foregroundColor": "#000000",
  "selected": false,
  "hidden": false,
  "conferenceProperties": {
    "allowedConferenceSolutionTypes": [
      "eventHangout"
    ]
  }
}

最佳答案

eventHangout只是消费者帐户的有效值,而作为Gsuite用户,您需要选择eventNamedHangout

请参阅文档here

java - 谷歌日历API说400无效的请求由于无效的值( session 属性)-LMLPHP
this question

09-08 03:53