Google 雲端硬碟活動服務
Google Drive Activity 服務可讓您在 Apps Script 中使用 Google Drive Activity API。這個 API 可讓使用者透過程式輔助方式存取 Google 雲端硬碟活動相關資訊。
參考資料
如要進一步瞭解這項服務,請參閱 Google Drive Activity API 的參考說明文件。與 Apps Script 中的所有進階服務一樣,Google Drive Activity 服務會使用與公開 API 相同的物件、方法和參數。詳情請參閱「如何決定方法簽章」。
如要回報問題並尋求其他支援,請參閱 Google 雲端硬碟活動支援指南。
程式碼範例
以下程式碼範例使用 API 的 第 2 版。
取得 Google 雲端硬碟中的活動
這個範例會取得使用者 Google 雲端硬碟中的近期活動,並記錄每項活動的時間、執行者、動作和目標。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["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."]]],[]]