我试图从父文件夹中获取所有文件/文件夹。从Google Drive中的ID文件夹获取儿童文件
我设法得到父文件夹的ID。当我尝试获取文件信息,我可以,如果我用的ID指示在本页面活生生的例子:https://developers.google.com/drive/v2/reference/files/get
但是,当我试图让与页面代码示例的任何文件数据:
try {
File file = service.files().get(fileId).execute();
System.out.println("Title: " + file.getTitle());
System.out.println("Description: " + file.getDescription());
System.out.println("MIME type: " + file.getMimeType());
} catch (IOException e) {
System.out.println("An error occured: " + e);
}
}
我什么也没得到,除了收到此错误信息:
com.google.api.client.googleapis.json.GoogleJsonResponseException:404 OK
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "File not found: 0Bz8fRNYAOdjjd05ydVRCROE4QlE",
"reason" : "notFound"
} ],
"message" : "File not found: 0Bz8fRNYAOdjjd05ydVRCROE4QlE"
}
如何ç我可以从文件/文件夹中获得任何数据和ID吗?
非常感谢您的提前和问候!
这显示为链接到[我回答的问题](http://stackoverflow.com/questions/26511945/404-error-when-trying-to-get-document-metadata-via-the-google- drive-api/26727594#comment42099407_26727594),所以我认为如果10个月后你仍然有问题,我会指示你。 –