概览
bookmark_border
bookmark
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
利用 Google Tasks API,您可以搜索、读取和更新 Google Tasks 内容和元数据。本文档介绍了如何使用适用于各种编程语言(目前为 Java、Python 和 PHP)的 RESTful 调用样式和客户端库来访问和修改 Google Tasks 数据。
想要与 Google 工作表进行更深入的集成的网站或应用可以使用 Google Tasks API。例如,您可以使用 Google Tasks API 在移动应用中管理 Google 任务列表,或者将任务集成到更丰富的工作流应用(如自动待办事项)中。
Google Tasks 基于两个基本概念构建:
- 任务列表
- 一个包含任务的列表。用户可以拥有多个任务列表,以便按照自己想要的方式管理任务。
- 任务
- 单个任务,包含任务标题、备注、截止日期和完成日期等信息。
Tasks API 数据模型
资源是具有唯一标识符的单个数据实体。Google Tasks API 基于两种类型的资源运行:
- 任务列表资源
- 表示任务列表。
- 任务资源
- 表示任务。
Tasks API 数据模型基于资源组(称为集合):
- 任务列表集合
- 每个用户至少有一个
default
任务列表。
- 任务收集
- 包含特定任务列表资源中的所有任务资源。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-13。
[null,null,["最后更新时间 (UTC):2025-03-13。"],[],[],null,["# Overview\n\nThe Google Tasks API lets you search, read, and update Google Tasks content and metadata. This document describes how to use a RESTful calling style and client libraries for various programming languages (currently Java, Python, and PHP) to access and edit Google Tasks data.\n\nSites or applications that want deeper integration with Google Tasks can leverage the Google Tasks API. For example, you could use the Google Tasks API to manage Google task lists in a mobile app, or you could integrate tasks into a more extensive workflow app such as [Au-to-do](http://code.google.com/p/au-to-do/).\n\nGoogle Tasks is built on two basic concepts:\n\nTask List\n: A list containing tasks. Users can have more than one task list to manage their tasks the way they want.\n\nTask\n: A single task containing information such as the title of the task, notes, the due date, and the completed date.\n\n### Tasks API data model\n\nA resource is an individual data entity with a unique identifier. The Google Tasks API operates on two types of resources:\n\nTask List Resource\n: Represents a task list.\n\nTask Resource\n: Represents a task.\n\nThe Tasks API data model is based on groups of resources, called collections:\n\nTask List Collection\n: Each user has at least one `default` Task List.\n\nTask Collection\n: Consists of all the Task Resources within a specific Task List Resource."]]