總覽
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 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-03 (世界標準時間)。
[null,null,["上次更新時間:2024-09-03 (世界標準時間)。"],[[["The Google Tasks API allows developers to programmatically access and manage Google Tasks data, including searching, reading, and updating tasks and task lists."],["Developers can utilize the API with RESTful calls or client libraries for Java, Python, and PHP, enabling integration with various applications."],["Google Tasks data is structured around task lists and individual tasks, each with its own properties and metadata."],["The API operates on resources like task lists and tasks, organized into collections for access and management."],["Users have a default task list, and additional lists can be created to organize tasks according to user preferences."]]],["The Google Tasks API allows searching, reading, and updating Google Tasks data via RESTful calls and client libraries (Java, Python, PHP). It's designed for deep integration with Google Tasks, allowing apps to manage task lists. Core elements include Task Lists (collections of tasks) and individual Tasks (containing title, notes, due date, and completed date). The API operates on Task List and Task Resources, grouped into Task List and Task Collections. Each user has at least one default task list.\n"]]