Monday, 3 April 2017

google drive api. I want to create folder in my folder with Node.js

This is the composition of my google drive.

dir1
dir2
└ file2-1

I created a service account and succeeded in connecting api. And I would like to create a folder named "dir1-1" inside this "dir1" using the service account access token.

I looked up the id of "dir1". I stored it in the folderId parameter of drive.files.create().

But I could not do it as I wanted. Perhaps "dir1-1" has been created as a property of the service account.

Is it possible to make my wish come true?



via tomoya ishizaka

No comments:

Post a Comment