.net - How to get Folder ID while creating a new folder in Google Drive using API -


i trying create subfolder in google drive....i have created main folder using api...studying drive api documentation learned create subfolder need specify main folder id..but couldn't find way folder id...

my question , how folder id while creating new folder in google drive using api

when insert file or create directory use files: insert if successful, method returns files resource in response body.

if check return of insert find id id of file or directory created. can use parent new directory.

code directly documentation:

filesresource.insertmediaupload request = service.files.insert(body, stream, mimetype); request.upload(); file file = request.responsebody;     console.writeline("file id: " + file.id); 

Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -