Tasks 服務
Tasks 服務可讓您在 Apps Script 中使用 Google Tasks API。這個 API 可讓使用者在 Gmail 中管理工作。
參考資料
如需這項服務的詳細資訊,請參閱 Tasks API 的參考說明文件。與 Apps Script 中的所有進階服務一樣,Tasks 服務會使用與公開 API 相同的物件、方法和參數。詳情請參閱「如何決定方法簽章」。
如要回報問題或尋求其他支援,請參閱 Tasks 支援指南。
應用程式範例
簡易工作事項網路應用程式範例示範如何使用 Tasks 服務進行讀取和寫入作業。您可以在我們的 GitHub 存放區中查看完整原始碼。
程式碼範例
以下程式碼範例使用 API 的 第 1 版。
列出工作清單
這個範例會列出帳戶中的任務清單。
列出工作
這個範例會列出指定工作清單內的工作。
新增任務
這個範例會將新工作新增至工作清單。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["The Tasks service in Apps Script enables you to manage tasks in Gmail using the Google Tasks API."],["This advanced service requires enabling before use and utilizes the same structure as the public Tasks API."],["Sample code is provided to demonstrate common operations like listing task lists, listing tasks within a list, and adding new tasks."],["A simple tasks web application showcases read and write operations with the Tasks service and is available with full source code on GitHub."],["Support and further information regarding the Tasks service can be found in the Tasks support guide and reference documentation."]]],[]]