總覽
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Tasks API 可讓您搜尋、讀取及更新 Google Tasks 的內容和中繼資料。本文件說明如何針對各種程式設計語言 (目前為 Java、Python 和 PHP) 使用符合 REST 樣式的呼叫樣式和用戶端程式庫,以存取和編輯 Google Tasks 資料。
如果想要進一步與 Google Tasks 整合,可以使用 Google Tasks API。舉例來說,您可以使用 Google Tasks API 管理行動應用程式中的 Google 工作清單,也可以將任務整合至更廣泛的工作流程應用程式,例如 Au-to-do。
Google Tasks 有以下兩項基本概念:
- 工作清單
- 包含工作的清單。使用者可以擁有多份工作清單,以便按需求管理工作。
- 工作
- 單一工作包含工作標題、附註、到期日和完成日期等資訊。
Tasks API 資料模型
資源是具有專屬 ID 的個別資料實體。Google Tasks API 運作在兩種類型的資源上:
- 工作清單資源
- 代表工作清單。
- Task 資源
- 代表工作。
Tasks API 資料模型以資源群組為基礎,稱為集合:
- 工作清單集合
- 每位使用者至少都有一份
default
工作清單。
- 工作集合
- 由特定工作清單資源中的所有工作資源組成。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[],[],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."]]