尝试部分中的查询字符串在 12 小时前不起作用。 我的查询字符串是mimeType = 'application/vnd.google-apps.folder' 无论如何,不适用于任何查询。 https://developers.google.com/drive/v2/reference/children/list 请告诉我为什么??
最佳答案
我也遇到同样的问题:
child.Q = "mimeType = 'application/vnd.google-apps.folder' and title contains 'SomeDocuments'"
Dim cl As ChildList = child.Fetch
它返回所有文档,就像没有过滤器一样
也许 Google Drive API 发生了一些变化?
更新 我在谷歌上找不到任何东西,我在子列表页面写了一个反馈。 到目前为止,唯一的解决方法是不使用 Children.list,而是使用 file.list 方法,并在 q 部分中添加“parents - 'folderid'”搜索项来模拟对父文件夹的子文件夹的搜索。 缺点是它只会搜索以folderid为父级的文档,而不是像children.list方法那样搜索子文件夹。
更新2 看起来谷歌已经解决了这个问题! 快乐编码。
关于google-drive-api - Drive API Children.list q 参数损坏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18135794/