Is it possible to find files with a q arg in the service.files().list() method, so that only files with comments are retrieved?
If not, then is there a field to mark such files that have comments?
I have looked at Query reference to no avail.
Is it possible to find files with a q arg in the service.files().list() method, so that only files with comments are retrieved?
If not, then is there a field to mark such files that have comments?
I have looked at Query reference to no avail.
With q one could only query replies (as this is a property of File and therefore can be queried for). So you'd have to list all the files and then list the associated comments. When there's more than 0 comments, just push that fileId into an array; maybe also the number (length) of comments.
At first this one:
GET https://www.googleapis.com/drive/v3/files
And then this one:
GET https://www.googleapis.com/drive/v3/files/{fileId}/comments