查询语法存在问题,正确的查询参数为
GET https://www.googleapis.com/drive/v2/files?q=trashed%3Dfalse
setQ(args...)
函数:FileList result = service.files().list()
.setQ("mimeType='image/jpeg' and trashed=false")
.setSpaces("drive")
.setFields("items(id, title)")
.execute();
更多内容请查看 - https://developers.google.com/drive/api/guides/search-files