Google ドライブ アクティビティ サービス
Google Drive Activity サービスを使用すると、Apps Script で Google Drive Activity API を使用できます。この API を使用すると、ユーザーはプログラムによるアクセスで Google ドライブのアクティビティに関する情報を取得できます。
リファレンス
このサービスの詳細については、Google Drive Activity API のリファレンス ドキュメントをご覧ください。Apps Script のすべての高度なサービスと同様に、Google ドライブ アクティビティ サービスでは、公開 API と同じオブジェクト、メソッド、パラメータを使用します。詳細については、メソッド シグネチャの決定方法をご覧ください。
問題を報告したり、その他のサポートを確認したりするには、Google ドライブ アクティビティのサポートガイドをご覧ください。
サンプルコード
以下のサンプルコードでは、API のバージョン 2 を使用しています。
Google ドライブのアクティビティを取得する
このサンプルは、ユーザーの Google ドライブの最近のアクティビティを取得し、各アクティビティの時間、アクタ、アクション、ターゲットに関する情報をログに記録します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-21 UTC。
[null,null,["最終更新日 2024-12-21 UTC。"],[[["The Google Drive Activity service enables programmatic access to Google Drive activity data using the Google Drive Activity API within Apps Script."],["This advanced service requires enabling before use and mirrors the functionality of the public API, using the same objects, methods, and parameters."],["Comprehensive reference documentation, support resources, and sample code are available to guide developers in utilizing this service effectively."],["The provided sample code demonstrates retrieving and logging recent Drive activity, including time, actor, action, and target information, using version 2 of the API."]]],[]]