I tried to get list images of my google drive. My code in Java:
FileList mockupList = service.files().list()
.setPageSize(100)
.setQ("mimeType='image/jpeg' and '" + optionFolderID + "' in parents")
.setFields("nextPageToken, files(id, name, thumbnailLink, createdTime, hasThumbnail)")
.execute();
But the response did not contain thumbnailLink. I changed scopes: DriveScopes.DRIVE (full access) but not work. Please give me a solution. Thanks!
P/s: if i tried in https://developers.google.com/drive/api/v3/reference/files/list, it's work well. But in my java client is not.