java - google calendar api 说 400 bad request 由于无效值(会议属性)
问题描述
我正在尝试calendarList
使用谷歌日历 api v3 插入。请求正文包含
conferenceProperties
允许conferenceProperties.allowedConferenceSolutionTypes[]
列表{eventHangout,eventNamedHangout,hangoutsMeet}
。
当我尝试使用任何一个插入时 conferenceProperties.allowedConferenceSolutionTypes[]
,请求会抛出“400 bad request”。但幸运的是,当请求不包含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": "XXX@group.calendar.google.com",
"kind": "calendar#calendarListEntry",
"summaryOverride": "",
"colorId": "18",
"backgroundColor": "#b99aff",
"foregroundColor": "#000000",
"selected": false,
"hidden": false,
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"eventHangout"
]
}
}
解决方案
推荐阅读
- angular - 如何使用响应式表单禁用 ng-select?
- powershell - 您如何提取事件和 ServiceRequest 的“由用户创建”属性?
- javascript - jQuery无法获取数据属性,返回未定义
- c++ - GCC和Clang中的模板类如何继承子类
- c# - 如何在我的 BackgroundWorker 完成之前删除 SynchronizationContext?
- android - 使用颤振 wifi 包获取类型错误
- java - java - 如何在java中的放心测试中通过标头
- unit-testing - 如何用 Sinon 解决 NodeJS 的内置函数?
- javascript - 如何显示/隐藏 div 点击图片
- c# - 如何让 People.GetBatchGet() 返回特定尺寸的照片