title: Google Drive setup push notifications
body: <p>We want to receive notifications from google when we do anychange(Add,Edit OR Delete) on google drive folder for these purpose we have integrated google watch api in our spring boot application.</p>
  <p><strong>code snippet :</strong></p>
  <pre><code>public Channel setUpWatch() throws IOException, GeneralSecurityException {
      Channel channel = new Channel();
      channel.setAddress(&quot;https://somedomain.com/notifications&quot;);
      channel.setType(&quot;web_hook&quot;);
      channel.setId(UUID.randomUUID().toString());
      channel.setKind(&quot;api#channel&quot;);
      StartPageToken pageToken = 
      driveServiceProvider.getDriveService().changes().getStartPageToken().execute();
      System.out.println(pageToken.getStartPageToken());
  
      Channel changesChannel = driveServiceProvider.getDriveService().changes()
                  .watch(pageToken.getStartPageToken(), channel).execute();
      System.out.println(changesChannel.getExpiration());return
      return changesChannel;
  }
  </code></pre>
  <p>After running this code we are getting 200 in response, but we are not receiving any push notification from google  when we do any operation in google drive. <code>We are getting empty changeList</code></p>
  <p>We are checking this code on local with no domain registration</p>
  <p>Is there any other way to get the edit, add or deleted files list from google drive?</p>
  <p>We do not want any notification on any domain or address. Whenever we trigger the api and if any file(s) is changed, we want that file(s) details like drive url, file name.</p>