【发布时间】:2014-07-17 12:05:53
【问题描述】:
我想知道如何使用 drive-sdk 和 python 与用户共享文件。我一直在使用下面的代码,但它不会与指定用户共享文件,也不会产生错误:
...
Permission = {
'value': 'user@example.com',
'type' : 'user',
'role' : 'reader'
}
drive.permissions().insert(fileId=file['id'], body = Permission,sendNotificationEmails = True )
【问题讨论】:
标签: python google-app-engine google-drive-api