How to share files with pydrive

263 views Asked by At

I can't find the way to share Google drive files after I upload them, currently I'm using Python and PyDrive . I'm not even sure if this is even possible.

Sharing is a Google Drive option, it's allows other users to access use it(read, comment or edit).

Here's my code: from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive

gauth = GoogleAuth() gauth.LocalWebserverAuth()

drive = GoogleDrive(gauth)

ufile = drive.CreateFile({'title': 'Hello.txt'})

ufile.SetContentString('Hello World!')

ufile.Upload()

0

There are 0 answers