0

I'm trying to establish Google Drive webhooks using POST https://www.googleapis.com/drive/v3/files/fileId/watch.

And I'd like to use my Google Script app (web app) as the webhook receiver. (url: https://script.google.com/a/swit.io/macros/s/{script_id}/exec)

But when I tried this, the Drive API returned the error Unauthorized WebHook callback channel.

Because script.google.com isn't my own domain, it's not possible to verify it on my GCP account.

How can I pair Google Script and Google Drive webhook service?

ddffbb
  • 61
  • 9
  • 1
    Does this answer your question? [Drive API Push Notifications for a Google Apps Script Web App](https://stackoverflow.com/questions/60631850/drive-api-push-notifications-for-a-google-apps-script-web-app) – iansedano Nov 11 '20 at 09:37
  • Totally. Thanks. – ddffbb Nov 11 '20 at 11:52

0 Answers0