Answers for "python PyDrive service account credentials"

0

python PyDrive service account credentials

gauth = GoogleAuth()
scope = ['https://www.googleapis.com/auth/drive']
gauth.credentials = ServiceAccountCredentials.from_json_keyfile_name(JSON_FILE, scope)
drive = GoogleDrive(gauth)

my_file = drive.CreateFile({'id': 'FILE_ID'})
Posted by: Guest on April-13-2020

Code answers related to "python PyDrive service account credentials"

Python Answers by Framework

Browse Popular Code Answers by Language