且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Java搜索Google Drive V3中的文件夹?

更新时间:2023-02-14 12:51:45

在v2中,

In v2, Children: list is used to list a folder's children and to list all children of the root folder, use the alias root for the folderId value.

但是,在迁移到Google Drive API v3 中指出, Children Parents 集合已被删除.改为使用 files.list .

However, it's stated in Migrate to Google Drive API v3 that Children and Parents collections have been removed. Use files.list instead.

以此,尝试在 q 参数中添加 parents 属性.与此相关的 SO帖子可能会有所帮助.

With this, try adding parents property in your q parameter. This related SO post might help.