Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Notifications 了解驱动器API通知事件_Notifications_Google Drive Api - Fatal编程技术网

Notifications 了解驱动器API通知事件

Notifications 了解驱动器API通知事件,notifications,google-drive-api,Notifications,Google Drive Api,我已经在我的应用程序中实现了GoogleDrive推送通知机制 我面临的问题是,我总是将标题资源状态“X-Goog-resource-state”变为“changed” 我正在使用下面的代码创建频道 Channel channel = service.Changes.Watch(new Channel() { Address = channelAddress, Id = channelId, Token = token, Type = "web_hook", Expiration = Expir

我已经在我的应用程序中实现了GoogleDrive推送通知机制

我面临的问题是,我总是将标题资源状态“X-Goog-resource-state”变为“changed”

我正在使用下面的代码创建频道

Channel channel = service.Changes.Watch(new Channel() { Address = channelAddress, Id = channelId, Token = token, Type = "web_hook", Expiration = ExpiresIn }).Execute();
如果使用service.changes.watch,则只能看到更改

我的要求是我必须获得与文件/文件夹相关的所有更改,并且我需要确定文件/文件夹是否已上载/共享、更新或删除

有人能帮我解决我的问题吗


提前感谢…

对于文件中的所有更改,您必须检查files.watch。检查此链接。此外,您还可以查看“试用”以查看示例请求和响应。谢谢您的评论