
We recommend that you use a universally unique identifier (UUID) or any similar unique string.

The above endpoint requires following properties when making a request - id, type, address - please refer this resource for more details - Īn id property string that uniquely identifies this new notification channel within your project. The endpoint for setting up a notification channel for a User - POST The endpoint for setting up a notification channel for a resource(file/folder) - POST You can watch a file or a folder or you can watch any change for a user. Once that is done successfully - you will start receiving notifications of the changes. We need to set up a notification channel for each resource to be watched. Setting step 1 does not send any notifications to the application for any changes in any folder or files. Once your domain is added successfully - it will be listed under the Allowed Domains section. To resolve it was to open a new incognito window or private window,Īnd login into the Google Account where you need to add the domain. The problems could be you are signed in to multiple Google accounts. Important Note: In case you are not able to verify your domain one of Fill in the form, then again click Add domain.Go to the Domain verification page in the API Console.To register a verified domain name as one of the allowed domains for your project, do the following: Once you have verified your domain, you can proceed to register your domain.

To help you verify your domain you can refer this link. We will be able to learn in this post how do we set up an application to start tracking a file or a folder in Google.īefore you register your domain, one needs to verify - they own the domain. We needed this without an impact on the performance - without polling Google to find out updates and nor writing any custom logic comparing timestamps to find the files added, files updated and files removedįor changes being instantly tracked we needed some watcher or webhook from Google - that will allow us to make changes in our application as soon as some change happens in Google.

Once we were done with the sync setup - next step is to ensure sync was accurate and timely i.e changes made in our application are accessed instantly in Google and more important changes made in Google are available in our application. In my previous post, we discussed how we were able to sync our files and folders with Google Drive. 4 min read Google Drive Folder Sync - Webhooks.
