An example of how to query Google Drive V3 API from Goole Apps Script.
This script checks the specified folder recursively. If there are updated files in the past N hours, it sends an e-mail. It will look like:
First of all, create .clasp.json (like .clasp.json.example), put your script ID on it. The following variables in main.ts are required to be changed:
folderID
- The root folder ID which you want to search (ex: 0BzC_ZCA5viU_NUVTSlViM0xMV2s)teamDriveID
-If the folderID is under a team drive, needs to specify the team drive IDpastTime
- If the past time is set as (24 * 60 * 60 * 1000), it searches he files updated in the past 24 hours.timeZone
- Used for the time-format in the mail contentsentTo
- The email address you want to sent tomailSubject
- The mail subjectsenderName
- The sender name
This software is released under the MIT License, see LICENSE.txt.