简体   繁体   中英

Get folder and subfolder id Google Drive

I want to retrieve all ids from the folders and the subfolders from my Google Drive Account. I am using the work with folders from Google Drive Rest API.

That's easy. Use Files.list and in the " search " field, place mimeType = 'application/vnd.google-apps.folder as the parameter to indicate that you're only looking for files of type folder. Execute that and it will return all your folder. Indicate in the fields that you're looking for "id". You'll have the complete list of your folder IDs.

Run this API Explorer URL to see for yourself. I've already placed the necessary fields for you. Just Execute and Authorize. Just look for the id property, that's it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM