I was looking through the Android Google Drive API and understood its overall workings but I was wondering what exactly the resource id of a file or folder is. Can this only be found for a query or is can this be found simply through looking at the document? Furthermore, is there any way to access a public Google Drive document through the API?
1917 次
1 回答
3
通过执行Files: list,您可以返回目录中所有文件和目录的列表。
Google 会为每个文件或目录返回一个文件资源,您将找到该文件的 id 或资源 id。查看该q
选项,files: list
您可以使用该选项搜索文件名以查找所需文件的资源 ID。我实际上不确定您是否可以通过查看网站上的文档来看到这一点。
旁注:文件夹也被认为是 Google Drive API 中的文件,它们只是具有 mime 类型
"mimeType": "application/vnd.google-apps.folder",
于 2014-09-19T06:37:40.343 回答