我发现
this page
,表示您可以通过调用
file.get('id')
-就是
res.get('id')
就你而言。
# ...
res = DRIVE.files().insert(convert=convert, body=metadata,
media_body=filename, fields='mimeType,exportLinks,id').execute() # <-- EDIT: added id here
print('Uploaded file to {url}'.format(url='https://drive.google.com/open?id=' + res.get('id')))