Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'}) 
Source by github.com #
 
PREVIOUS NEXT
Tagged: #python #PyDrive #service #account #credentials
ADD COMMENT
Topic
Name
8+9 =