Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Drive API Files.List Query String

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

Here is my code:

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

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?

like image 898
user1417943 Avatar asked Jul 12 '12 17:07

user1417943


1 Answers

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

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

like image 80
Claudio Cherubino Avatar answered Oct 05 '22 18:10

Claudio Cherubino