Skip to content

Instantly share code, notes, and snippets.

@p1nesap
Last active February 21, 2016 20:13
Show Gist options
  • Save p1nesap/296a01728019d4b47e2d to your computer and use it in GitHub Desktop.
Save p1nesap/296a01728019d4b47e2d to your computer and use it in GitHub Desktop.
Time trigger function for YouTube API
//calls createDoc function from YouTubeAPI.gs and updates every 6 hours.
function createTimeDrivenTriggers() {
ScriptApp.newTrigger('createDoc')
.timeBased()
.everyHours(6)
.create();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment