I'm creating a PHP script that will create folders within a Google Drive account. Once the folder is created I will then then share it using the permissions, with other users of my google apps domain.
I've created this part successfully, now I need to add a function that can be done througth the UI, but I can't find a way to do via api: I want to add the folder into the my files section of an users (possibly in a sub folder) Throught the UI can be done going to the "files shared with me" section, right clicking and selecting "add to my file"
How can i do that programmatically? There's a way?
EDIT
I want to do this programmatically in the users directory
https://i.stack.imgur.com/II3Q6.png
at the moment, I can create file and folder in the users directory, only I don't know how to add a folder shared from an other users