I am trying to get a list of folders so that I can do a search for files within all subfolders. I am using this post (alternative 3) as a reference https://stackoverflow.com/a/41741521/1485815
My query is like this (I have tried mimetype and mimeType in the query)
$optParams = array(
'pageSize' => 1000
,'fields' => 'nextPageToken, files(contentHints/thumbnail,fileExtension,iconLink,id,name,size,thumbnailLink,webContentLink,webViewLink,mimeType,parents, kind, trashed, owners, modifiedTime)'
,'q' => "mimeType=application/vnd.google-apps.folder"
);
$service = new \Google_Service_Drive($this->GoogleClient);
$results = $service->files->listFiles($optParams);
I am authenticated fine, but this query gives an error with the following details
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Invalid Value",
"locationType": "parameter",
"location": "q"
}
],
"code": 400,
"message": "Invalid Value"
}
}