Google Drive API Files.List 查询字符串 [英] Google Drive API Files.List Query String

查看:17
本文介绍了Google Drive API Files.List 查询字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I would like to know the keywords and parameters for formulating a query string for the google drive api list.setQ method.

这是我的代码:

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

到目前为止,我发现TRASHED"是有效的参数,我可以用它来列出所有我的谷歌驱动器中的垃圾文件.拥有完整的参数列表会很好.该列表可用吗?

So far, I found "TRASHED" is valid parameter which I can use to list all the trashed files in my google drive. It would be nice to have the complete list of parameters. Is that list available?

推荐答案

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

The Google Drive SDK documentation lists all fields and operators you can use in your queries:

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

这篇关于Google Drive API Files.List 查询字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆