I have a folder in my google drive and I want to list its files and subfolders using google drive Api through a search box. Does Api provide any flexibility to get folders.
I've a script to get folders but it's not working properly. Showing some trashed folder. I want files too.
$this->client = $googl->client();
$this->drive = $googl->drive($this->client);
$folderId = '0B4JDg65OBlTM3RseUk';
$parameters = [
'q' => "'$folderId' in parents",
'fields' => 'files(id, name, modifiedTime, iconLink,
webViewLink, webContentLink)'];
$result = $this->drive->files->listFiles($parameters);