Google Tasks API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google Tasks API 可讓您管理工作和工作清單。
服務:tasks.googleapis.com
如要呼叫這項服務,建議您使用 Google 提供的用戶端程式庫。如果您的應用程式需要使用您自己的程式庫來呼叫這項服務,請在發出 API 要求時使用下列資訊。
探索文件
探索文件是一種機器可解讀的規格,用於說明和使用 REST API。此文件用於建構用戶端程式庫、IDE 外掛程式,以及與 Google API 互動的其他工具。一項服務可能會提供多個探索文件。這項服務提供下列探索文件:
服務端點
服務端點是指定 API 服務網路位址的基準網址。一項服務可能有多個服務端點。這項服務有以下服務端點,且下方的 URI 皆以此服務端點為基準:
https://tasks.googleapis.com
方法 |
delete |
DELETE /tasks/v1/users/@me/lists/{tasklist}
刪除已驗證使用者指定的工作清單。 |
get |
GET /tasks/v1/users/@me/lists/{tasklist}
傳回已驗證使用者指定的工作清單。 |
insert |
POST /tasks/v1/users/@me/lists
建立新的工作清單,並新增至已驗證使用者的任務清單。 |
list |
GET /tasks/v1/users/@me/lists
傳回已驗證使用者的所有工作清單。 |
patch |
PATCH /tasks/v1/users/@me/lists/{tasklist}
更新已驗證使用者指定的工作清單。 |
update |
PUT /tasks/v1/users/@me/lists/{tasklist}
更新已驗證使用者指定的工作清單。 |
方法 |
clear |
POST /tasks/v1/lists/{tasklist}/clear
從指定的工作清單中清除所有已完成的工作。 |
delete |
DELETE /tasks/v1/lists/{tasklist}/tasks/{task}
從工作清單中刪除指定的工作。 |
get |
GET /tasks/v1/lists/{tasklist}/tasks/{task}
傳回指定的工作。 |
insert |
POST /tasks/v1/lists/{tasklist}/tasks
在指定的工作清單中建立新工作。 |
list |
GET /tasks/v1/lists/{tasklist}/tasks
傳回指定工作清單中的所有工作。 |
move |
POST /tasks/v1/lists/{tasklist}/tasks/{task}/move
將指定的工作移至目的地工作清單中的其他位置。 |
patch |
PATCH /tasks/v1/lists/{tasklist}/tasks/{task}
更新指定的工作。 |
update |
PUT /tasks/v1/lists/{tasklist}/tasks/{task}
更新指定的工作。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],null,["# Google Tasks API\n\nThe Google Tasks API lets you manage your tasks and task lists.\n\n- [REST Resource: tasklists](#tasklists)\n- [REST Resource: tasks](#tasks)\n\nService: tasks.googleapis.com\n-----------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://www.googleapis.com/discovery/v1/apis/tasks/v1/rest\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://tasks.googleapis.com`\n\nREST Resource: [tasklists](/workspace/tasks/reference/rest/v1/tasklists)\n------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| [delete](/workspace/tasks/reference/rest/v1/tasklists/delete) | `DELETE /tasks/v1/users/@me/lists/{tasklist}` Deletes the authenticated user's specified task list. |\n| [get](/workspace/tasks/reference/rest/v1/tasklists/get) | `GET /tasks/v1/users/@me/lists/{tasklist}` Returns the authenticated user's specified task list. |\n| [insert](/workspace/tasks/reference/rest/v1/tasklists/insert) | `POST /tasks/v1/users/@me/lists` Creates a new task list and adds it to the authenticated user's task lists. |\n| [list](/workspace/tasks/reference/rest/v1/tasklists/list) | `GET /tasks/v1/users/@me/lists` Returns all the authenticated user's task lists. |\n| [patch](/workspace/tasks/reference/rest/v1/tasklists/patch) | `PATCH /tasks/v1/users/@me/lists/{tasklist}` Updates the authenticated user's specified task list. |\n| [update](/workspace/tasks/reference/rest/v1/tasklists/update) | `PUT /tasks/v1/users/@me/lists/{tasklist}` Updates the authenticated user's specified task list. |\n\nREST Resource: [tasks](/workspace/tasks/reference/rest/v1/tasks)\n----------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [clear](/workspace/tasks/reference/rest/v1/tasks/clear) | `POST /tasks/v1/lists/{tasklist}/clear` Clears all completed tasks from the specified task list. |\n| [delete](/workspace/tasks/reference/rest/v1/tasks/delete) | `DELETE /tasks/v1/lists/{tasklist}/tasks/{task}` Deletes the specified task from the task list. |\n| [get](/workspace/tasks/reference/rest/v1/tasks/get) | `GET /tasks/v1/lists/{tasklist}/tasks/{task}` Returns the specified task. |\n| [insert](/workspace/tasks/reference/rest/v1/tasks/insert) | `POST /tasks/v1/lists/{tasklist}/tasks` Creates a new task on the specified task list. |\n| [list](/workspace/tasks/reference/rest/v1/tasks/list) | `GET /tasks/v1/lists/{tasklist}/tasks` Returns all tasks in the specified task list. |\n| [move](/workspace/tasks/reference/rest/v1/tasks/move) | `POST /tasks/v1/lists/{tasklist}/tasks/{task}/move` Moves the specified task to another position in the destination task list. |\n| [patch](/workspace/tasks/reference/rest/v1/tasks/patch) | `PATCH /tasks/v1/lists/{tasklist}/tasks/{task}` Updates the specified task. |\n| [update](/workspace/tasks/reference/rest/v1/tasks/update) | `PUT /tasks/v1/lists/{tasklist}/tasks/{task}` Updates the specified task. |"]]