Tasks サービス
Tasks サービスを使用すると、Apps Script で Google Tasks API を使用できます。この API を使用すると、ユーザーは Gmail でタスクを管理できます。
リファレンス
このサービスの詳細については、Tasks API のリファレンス ドキュメントをご覧ください。Apps Script のすべての高度なサービスと同様に、タスク サービスでは、公開 API と同じオブジェクト、メソッド、パラメータを使用します。詳細については、メソッド シグネチャの決定方法をご覧ください。
問題を報告したり、その他のサポート情報を確認したりするには、ToDo リストのサポートガイドをご覧ください。
サンプル アプリケーション
サンプル ウェブ アプリケーションの Simple Tasks は、読み取りオペレーションと書き込みオペレーションの両方で Tasks サービスを使用する方法を示しています。ソースコード全体は GitHub リポジトリで確認できます。
サンプルコード
以下のサンプルコードでは、API のバージョン 1 を使用しています。
タスクリストの一覧を取得する
このサンプルでは、アカウント内のタスクリストを一覧表示します。
タスクの一覧表示
このサンプルでは、特定のタスクリスト内のタスクを一覧表示します。
タスクを追加
このサンプルでは、タスクリストに新しいタスクを追加します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-21 UTC。
[null,null,["最終更新日 2024-12-21 UTC。"],[[["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."]]],[]]