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

查看:77
本文介绍了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天全站免登陆