如何使用日历 API 识别 Google 日历 'Out of office' 事件
How to identify Google calendar 'Out of office' events using Calendar API
我需要一种方法来识别给定的 Google 日历事件是否是使用 Google 日历 API.
的 'Out of office' 事件
之前我曾经检查过事件对象的 'description' 字段,但似乎 Google 已停止发送该字段。
简单地说,我需要找到 Google 用户是否在给定日期 Vacation/Out-of-office。谢谢
当您创建 Out of office
活动时,这将成为活动的摘要 - 而不是描述。
您可以使用事件查询:列表
,只需将自由文本搜索参数 q
设置为 "Out of office"
即可获得如下所示的响应:
{
"kind": "calendar#events",
...
"items": [
{
...
"created": "2020-11-11T08:19:11.000Z",
"updated": "2020-11-11T08:19:11.213Z",
"summary": "Out of office",
"creator": {
"email": "XXX",
"self": true
},
...
}
]
}
我需要一种方法来识别给定的 Google 日历事件是否是使用 Google 日历 API.
的 'Out of office' 事件之前我曾经检查过事件对象的 'description' 字段,但似乎 Google 已停止发送该字段。
简单地说,我需要找到 Google 用户是否在给定日期 Vacation/Out-of-office。谢谢
当您创建 Out of office
活动时,这将成为活动的摘要 - 而不是描述。
您可以使用事件查询:列表
,只需将自由文本搜索参数 q
设置为 "Out of office"
即可获得如下所示的响应:
{
"kind": "calendar#events",
...
"items": [
{
...
"created": "2020-11-11T08:19:11.000Z",
"updated": "2020-11-11T08:19:11.213Z",
"summary": "Out of office",
"creator": {
"email": "XXX",
"self": true
},
...
}
]
}