使用 folderId 列出文件时出错

Error on list files using folderId

我需要按 folderId 列出文件

使用参考代码。 https://developers.google.com/drive/v2/reference/children/list

ERROR : Call to a member function listChildren() on null

使用此代码$service->files->listFiles(array('q' => "'<FOLDER_ID>' in parents"));