google-drive-api - Drive API Children.list q 参数损坏

标签 google-drive-api

尝试部分中的查询字符串在 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/

相关文章:

java - 如果已存在则不创建文件夹并返回文件夹 ID

google-apps-script - 在 Google Apps 脚本中将文件的所有权转移给其他用户

google-apps-script - 复制文件后获取文档的 URL/ID

php - Google Drive API 日期/时间

python - Drive-SDK Python 代码无法通过选定的标题词获取驱动文件

google-drive-api - Google 云端硬盘 API : list collections

android - Intent 的 OnDestroy()

google-docs-api - 从 Google 文档获取可用存储空间

google-drive-api - Google Drive API v3 - 用 PHP 下载文件

javascript - Google Drive API 文件搜索