I'm looking for a way to trigger a GAS (google app script) when I upload a file to google drive. I was pointed to the push notification API. I can't get it to work with GAS. There are a lot of questions about this on StackOverflow, but they were all 5+ years ago. Any change since then? Can I do this without using cloud functions?
Questions I've looked through:
- Can I trigger a Google Script when a file is saved to Google Drive? (No Real Solution)
- Creating a Google Apps Script which Automatically Executes on Upload (No Answer)
- Drive API Push Notifications for a Google Apps Script Web App (Possible Solution?)
- Use a GAS published web app as a handler for Drive push notifications (Not Helpful)
- Unable to create subscription with a push end point on App Script (script.google.com) (Outdated)
- Use Google Script's Web App as Webhook to receive Push Notification directly (Outdated & Not Helpful)
And much more I've not mentioned here.
I am also aware you can do this with a timer, but waiting 15 minutes for the change to take effect would hurt my use by quite a bit. One mentions a [solution][1] I like, but I don't know how to make it work :
UPDATE: Gmail leverages Cloud Pubsub for push notifications and this service has recently been updated to remove the need for domain verification for push endpoints. So, going forward its now possible to use GAS Web App URLs in this scenario.