Google API 服务帐户 - 无法访问私人数据

Google API Service Account - Can't Access Private Data

正在尝试使用服务帐户访问我的个人日历数据。

我已经完成了创建服务帐户(具有所有者权限)的设置。使用 NodeJS,我已成功向我的 public 日历发出请求,但不是我的私人日历。 (使用 googleapisgoogle-OAuth-jwt 包的结果相同)

我搜索过的所有内容都表明我需要提供 "domain-wide authority",但是,我没有 G Suite 帐户,所以我认为这不适用于我。

所以问题是,可以使用服务帐户访问自己的个人日历数据吗?我可能遗漏了什么?

在评论中回答,感谢abielita. Link to

Remember service accounts are not you. The service account has its own Google calendar account so if you are trying to read one of your personal calendars you are going to have to share it with the service account.

与我的服务帐户共享日历。

你可以参考这个. It stated that the service account has its on Google calendar account so if you are trying to read one of your personal calendars, you are going to share it with the service account. You can check the example given using the Json service account key file