英文:
Is there a way to be notified of changes (like new file uploaded) in a Google Drive service account?
问题
我正在使用C# Google Drive API上传和下载一些文件。我的凭证是服务帐号类型的。我正在从一个独立的Docker容器上传文件到Drive。我的C#应用程序(.NET Framework)需要在此发生时得知,而不需要不断地检查Drive文件夹。我如何在没有暴露终端点或URI的情况下实现这一点?同时,是否绝对必要拥有带有IP地址/专用域名的URI?
英文:
I am using C# Google Drive API to upload and download some files. My credential is of a Service Account type. I am uploading files to the Drive from a separate Docker container. My C# application(.NET Framework) needs to know when this happens without constantly checking the Drive folder. How can I do this without having an exposed Endpoint or URI ? Also is having a URI with IP address/dedicated domain name absolutely necessary?
答案1
得分: 1
你可以尝试为您的资源创建监视请求,这样您的C#应用程序就不需要不时地检查您的驱动器。您可以参考此参考链接中的指南,根据与资源关联的监视方法来创建监视请求。
英文:
You can try creating a watch requests for your resources so that your c# application won't need to check your drive from time to time. You can check this reference guide to create watch requests depending on the associated watch method for the resource.<br>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论