google-drive-api - Google Drive API Files.List 查询字符串

标签 google-drive-api

我想知道用于制定查询字符串的关键字和参数
对于 google drive api list.setQ 方法。

这是我的代码:

FileList files = drive.files().list()
            .setQ("trashed=true")
            .setMaxResults(100)
            .execute();

到目前为止,我发现“TRASHED”是有效的参数,我可以用它来列出所有
我的谷歌驱动器中的垃圾文件。最好有完整的参数列表。那个 list 可以用吗?

最佳答案

Google Drive SDK 文档列出了您可以在查询中使用的所有字段和运算符:

https://developers.google.com/drive/search-parameters

关于google-drive-api - Google Drive API Files.List 查询字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11457235/

相关文章:

google-apps-script - 使用 Google App Script 在云端硬盘中创建一个新文件夹

python - 使用 Python 写入 Google 文档

android - "createFromResourceId()"到哪里去了?

python - 使用 oauth2 和服务器端 python 的范围无效

google-api - 如何通过 API 向 Google Drive 添加/创建/插入文件?

google-drive-api - 在 Google 云端硬盘公共(public) View 中对文件进行排序

google-drive-api - Google Drive API v3 的导出链接

oauth-2.0 - 错误 : invalid_request device_id and device_name are required for private IP

android - Google Drive Android API - 检查文件夹是否存在

css - 在模态内/上方显示谷歌选择器