Google DRIVE API V3-获取名称为文件夹的ID [英] Google DRIVE API V3 - Get a folder id with name
本文介绍了Google DRIVE API V3-获取名称为文件夹的ID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只能找到从Google Drive API获取根文件夹ID的方法-[参考]:
I could find only ways to get the root folder id from google drive api -[REFERENCE]: Google Drive API v3 getting root folder Id in java . I have to get the folder id by giving a name. Is there anyway i could get Folder id of a directory in Drive by passing its name.
推荐答案
您可以使用以下参数搜索特定的文件夹:
You can search for a specific folder with these parameters:
name = 'your-folder-name'
mimeType = 'application/vnd.google-apps.folder'
MIME类型可确保您仅在搜索文件夹.有关更多信息,请在此处.
The mime type makes sure, that you are only searching for folders. For more information, take a look at the documentation of the search parameters here.
这篇关于Google DRIVE API V3-获取名称为文件夹的ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文