【问题标题】:How can I get allowedConferenceSolutionTypes "eventHangout" in the Calendar creation response?如何在日历创建响应中获得 allowedConferenceSolutionTypes “eventHangout”?
【发布时间】:2021-02-04 14:00:24
【问题描述】:

当我使用 Calendar API 插入带有 allowedConferenceSolutionTypes “eventHangout”的日历,但提供了响应“hangoutsMeet”,但根据 Google Calendar API 响应应该提供“eventHangout”。

创建日历的请求:

POST https://www.googleapis.com/calendar/v3/calendars?key=[YOUR_API_KEY]HTTP/1.1

授权:承载 [YOUR_ACCESS_TOKEN] 接受:应用程序/json 内容类型:application/json

{ "summary": "活动环聊", “会议属性”:{ “allowedConferenceSolutionTypes”:[ “事件环聊” ] } }

回应: { “种类”:“日历#日历”, "etag": ""ZK9fcme_JbF_CB4WYnKnXWUeuYw"", "id": "1n9qoe2np18slfqoq1sjd0lh3o@group.calendar.google.com", "summary": "活动环聊", "时区": "UTC", “会议属性”:{ “allowedConferenceSolutionTypes”:[ “聚会聚会” ] } }

如何在日历创建响应中获得 allowedConferenceSolutionTypes "eventHangout"?

它总是返回 "allowedConferenceSolutionTypes":["hangoutsMeet"]

不是事件环聊

【问题讨论】:

    标签: google-api google-calendar-api odoo hangout google-hangouts


    【解决方案1】:

    无法设置/修改日历的allowedConferenceSolutionTypes 属性。

    使用Calendars.insert() 创建新日历时,您需要在请求正文中提供Calendar resource,并将summary 作为必需属性

    如果您要检查可用于Calendar resource 的其他属性,conferenceProperties 不是可写属性。因此,您无法修改该属性。

    查看注释列以识别可写属性。

    【讨论】:

    猜你喜欢
    • 2018-03-09
    • 2012-09-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多