python PyDrive service account credentials code example
Example: 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'})