问题描述
我的期望是,如果我使用drive.file范围查询Changes Feed,我将只接收对我的应用程序拥有的文件的更改。
然而,在测试中,我看到Feed中的文件与我的应用无关。至少其中一些是与我共享的文件。
任何人都知道这应该如何工作?
编辑0
类似或重复的StackOverflow问题b
返回的文件不会针对您的应用。无论您的应用是否创建了这些文件,或者您的应用中的用户是否曾经打开过这些文件,在网络上公开的文件也会被回报。
有一个参数( includeSubscribed
)可以过滤掉共享的文档,但这也有点有限(请参阅 。
My expectation is that if I query the Changes Feed with a scope of drive.file, I will only receive changes to files owned by my application.
However, in testing that I have done, I am seeing files in the feed that have nothing to do with my app. At least some of them are files that have been shared with me.
Anybody know exactly how this is supposed to work?
Edit 0
Similar or duplicate StackOverflow questions
- Listing files with search query returns out-of-scope results (drive.files.list call, using drive.files scope)
- List ignores drive.file scope and shows shared files not created by the calling app
The files returned will not be specific to your app. Files that are "public on the web" are also reported back, regardless of whether or not your app created them or they were ever opened by the user in your app.
There is a parameter (includeSubscribed
) that will filter out shared docs but this is also a bit limited (see below).
From Detect Changes:
Here is a relevant parameter from Changes:list.
这篇关于使用drive.file范围提供的更改的预期行为是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!