Skip to content

thayashi/apps-script-gdrive-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Apps Script Google Drive Watcher

An example of how to query Google Drive V3 API from Goole Apps Script.

Tech Stack

How it works

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:

image

Configuration

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 ID
  • pastTime - 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 content
  • sentTo - The email address you want to sent to
  • mailSubject - The mail subject
  • senderName - The sender name

License

This software is released under the MIT License, see LICENSE.txt.

About

An example of how to query Google Drive V3 API from Goole Apps Script

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published