【发布时间】:2020-02-27 09:54:54
【问题描述】:
Google 日历 REST API GET 方法 (https://developers.google.com/calendar/v3/reference/events/get) 应返回此结构 (https://developers.google.com/calendar/v3/reference/events#resource),除非我遗漏了什么。
我需要获取要在我的应用程序中使用的事件标题和描述。相反,我得到了以下响应。
我已尝试更改活动可见性(公共/私人)和可用性(空闲/忙碌)。实际上,API 没有显示免费可用的事件,我也没有解决方案。
这是事件编辑屏幕截图: https://www.screencast.com/t/X8bRS8kJDT
{
"kind":"calendar#event",
"etag":"\"3145149995624000\"",
"id":"5fnlvcl2msab46p8roqbahhb6g",
"status":"confirmed",
"htmlLink":"https://www.google.com/calendar/event?eid=NWZubHZjbDJtc2FiNDZwOHJvcWJhaGhiNmcgZWQtYWRtaW4uY29tXzMwOHNycjdzdjdiM28xazRpdjZ2cm9mb3Y0QGc",
"updated":"2019-11-01T02:23:17.812Z",
"start":{
"dateTime":"2019-11-11T09:30:00+11:00"
},
"end":{
"dateTime":"2019-11-11T10:00:00+11:00"
},
"visibility":"private",
"iCalUID":"5fnlvcl2msab46p8roqbahhb6g@google.com"
}
是否有其他方法可以使用 REST API 获取日历事件详细信息,包括免费提供的方法?
谢谢。
2020 年 4 月 2 日: 我实际上使它适用于“普通”谷歌帐户 - 添加项目,添加 API,添加服务帐户并将服务帐户电子邮件分配到日历。但我仍然不确定如何更改 G Suite 帐户的访问级别。它只允许查看空闲/忙碌状态。
我已按照本文的建议更改了 Admin Console 中的默认访问权限,但这无济于事: https://www.macworld.com/article/2980005/the-mystery-of-the-unsharable-google-apps-calendar.html
【问题讨论】: