简体   繁体   English

google api服务帐户访问用户任务列表

[英]google api service account Access user task list

I have a gmail user and I created a service account with that user. 我有一个gmail用户,我为该用户创建了一个服务帐户。

The user itself has tasklists and I want to access them via the service account. 用户本身有任务列表,我想通过服务帐户访问它们。

However, the lists do not seem to be linked to the service account. 但是,列表似乎与服务帐户无关。 I only get one empty list when querying the tasks api with the service account authentication token. 在使用服务帐户身份验证令牌查询任务api时,我只获得一个空列表。

Do I need to somehow tell it to access the actual user tasks? 我是否需要以某种方式告诉它访问实际的用户任务?

您可能需要OAuth客户端才能访问用户的任务列表,而不是服务帐户: https//developers.google.com/identity/protocols/OAuth2UserAgent

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用服务帐户访问Google Analytics API - Google Analytics API access with a service account Google 服务帐户不再有权访问日历 API - Google Service Account no longer has access to Calendar API 如何使用来自 Javascript 的服务帐户在未经用户同意的情况下获取 Google API 数据的访问令牌 - How to get access token for Google APIs Data without User Consent using Service Account from Javascript 如何使用 Google 服务帐户和 Google API 根据其用户 ID 验证 G-Suite 用户的密码 - How to use Google Service Account and Google API to validate G-Suite User's Password against its user ID 每个用户 gmail 帐户的 Google Calendar API - Google Calendar API per user gmail account 将 Google 服务帐户与 google API JavaScript 客户端一起使用 - Use Google Service Account with google API JavaScript Client 如何获取 Google 服务帐户访问令牌 javascript - How to obtain Google service account access token javascript 通过 API 使用服务帐户访问共享的 Google Drive 文件夹 - Accessing shared Google Drive folder using service account through API 如何解决服务帐户和 Google Drive API 的 403 错误 - How to resolve 403 error with Service Account and Google Drive API 服务帐户的 Google Seach Console API 授权问题 - Google Seach Console API authorization issue with service account
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM