Google Tasks API

Google Tasks API:OAuth、REST 端点和集成指南

Google Tasks API 允许应用以编程方式读写您的任务列表。本指南涵盖了身份验证、核心端点、Zapier 工作流以及 TasksBoard 如何安全地使用 API。

发布于 Google Workspace Marketplace。


Google Tasks API 提供的内容

用于任务列表和项目的 REST API

通过标准 HTTP 请求创建、读取、更新和删除任务列表及任务。API 反映了您在 Google Tasks 应用中可以执行的操作。

OAuth 2.0 身份验证

应用通过 Google 的 OAuth 同意屏幕请求范围访问权限。用户按账户授予权限,不会与第三方共享密码。

实时双向同步

通过 API 所做的更改会立即出现在 Gmail、日历和移动端。TasksBoard 使用 API 来保持看板与 Google Tasks 同步。

Zapier 和自动化支持

使用相同的 API 端点和 OAuth 流程,通过 Zapier、Make 或自定义脚本将 Google Tasks 连接到数千个应用。


身份验证

OAuth 2.0:应用如何连接到 Google Tasks

Google Tasks API 的 OAuth 身份验证流程

像 TasksBoard 这样的第三方应用使用 OAuth 2.0 来请求访问您的 Google Tasks 数据。您使用 Google 登录,查看请求的范围,并授予权限。 TasksBoard 仅请求 Google Tasks API 范围,除非您明确启用这些功能,否则它不会访问 Gmail、Drive 或其他 Google 服务。

  • 标准的 Google OAuth 同意屏幕
  • 仅限于 Google Tasks 读/写范围
  • 可随时从 Google 账户设置中撤销访问权限

REST 端点

核心 Google Tasks API 资源

Google Tasks REST API 端点概览

API 公开了两个主要资源:任务列表和任务。您可以列出所有任务列表、创建新列表,并管理每个列表中的任务,包括标题、笔记、截止日期和完成状态。 基本 URL 为 https://tasks.googleapis.com/tasks/v1/,使用标准 REST 动词:GET、POST、PATCH 和 DELETE。

  • tasks.tasklists,管理命名列表
  • tasks.tasks,创建、更新、完成和删除任务
  • 通过父任务关系支持子任务

集成

Zapier、自动化和 TasksBoard 安全性

Google Tasks API 与 Zapier 和 TasksBoard 的集成

使用 Zapier 通过 Slack 消息、表单提交或 CRM 更新来触发 Google Tasks。如果需要在 API 之上使用可视化界面,TasksBoard 提供了看板和团队共享功能,无需编写代码。 阅读 TasksBoard 安全页面,了解有关数据处理、OAuth 范围和合规性的详细信息。

  • Zapier:通过 5,000 多个应用触发器创建任务
  • TasksBoard:API 之上的无代码看板
  • 安全详情请见 /security
阅读安全详情

如何集成 Google Tasks API

  1. 创建 Google Cloud 项目

    在 Google Cloud Console 中启用 Google Tasks API,配置 OAuth 同意屏幕,并为您的应用或脚本创建凭据。

  2. 使用 OAuth 2.0 进行身份验证

    请求 https://www.googleapis.com/auth/tasks 范围。用户通过 Google 的同意屏幕授权您的应用并获取访问令牌。

  3. 调用 REST 端点或使用 TasksBoard

    直接使用 Tasks API 进行自定义集成,使用 Zapier 进行无代码自动化,或使用 TasksBoard 在 Google Tasks 之上获取现成的看板界面。


深受数千名用户喜爱

在 Chrome Web Store 上获得 1,000+ 条评价,评分 4.8 / 5

"Always have 101 things to do and this helps me organize and prioritize like no other app can. It syncs to my phone and laptop, and when I add dates to tasks, they automatically integrate into my Google Calendar, which is immensely convenient. I can look at my daily, weekly, and monthly overview in Google Calendar and clearly see how much I was able to accomplish! Great tool indeed. Excited to see how it will evolve over time."

PR Parina Ramjee avatar
Parina Ramjee

"Seriously, makes my tasks easier to share with the team, and the free version is quite nice for our little office. Eventually, we will expand, and this is definitely a great tool to do that! Syncs with my Workspace and Calendar."

CC Chase Cattrall avatar
Chase Cattrall

"I love the simple, intuitive interface and the Add to Tasks feature, especially as I work through my emails! Sharing my tasks is also easy. Overall, outstanding and simple to use, and that means a lot with too many complex tasks out there!"

GC Greg Cantori avatar
Greg Cantori

"Great too for managing daily routine and plan tasks. Would be perfect if it was updated for generating reports for statistics. For google tasks and google calendar"

NV Nick Vlasov avatar
Nick Vlasov

常见问题解答

是否有官方的 Google Tasks API?

是的。Google 在 tasks.googleapis.com 为 Google Tasks 提供 REST API。它支持通过 OAuth 2.0 身份验证以编程方式管理任务列表和任务。

Google Tasks API 需要哪些 OAuth 范围?

大多数集成使用 https://www.googleapis.com/auth/tasks 进行完全读/写访问,或使用 https://www.googleapis.com/auth/tasks.readonly 进行只读访问。TasksBoard 请求标准的 tasks 范围。

我可以使用 Zapier 与 Google Tasks 配合使用吗?

是的。Zapier 支持将 Google Tasks 作为触发器和操作。您可以从表单提交、Slack 消息、CRM 更新和数千个其他应用中创建任务。

TasksBoard 如何使用 Google Tasks API?

TasksBoard 通过 OAuth 2.0 连接到您的 Google 帐户,并使用 Google Tasks API 实时读取和写入您的任务列表。您的任务仍存储在 Google Tasks 中,TasksBoard 只是其之上的可视化层。

TasksBoard 是否将其服务器上的 Google Tasks 数据存储起来?

TasksBoard 通过官方 API 访问 Google Tasks 数据,不会在其自己的服务器上存储您的任务内容。有关数据处理和 OAuth 范围的完整详细信息,请参阅 /security 处的安全页面。

我可以使用 Google Tasks API 构建自定义应用吗?

是的。在 Google Cloud Console 中启用 API,设置 OAuth 凭据,并使用 REST 端点构建自定义仪表板、自动化工具或内部工具。TasksBoard 就是基于此 API 构建的生产应用示例。

Google Tasks API 可以免费使用吗?

是的。Google Tasks API 对开发者免费。适用标准的 Google Cloud 配额。正常的任务管理使用量不会产生按请求计费的费用。



无需代码

跳过 API 设置:改用 TasksBoard

在 Google Tasks 之上获取看板和团队共享功能,无需编写集成代码。使用 Google 登录,几秒钟即可开始。

OAuth 2.0 认证。已发布在 Google Workspace Marketplace 上。