InsertPermission() Query Parameters
It would be great if InsertPermission() allowed manipulation of optional query parameters. I need to add permissions without sending emails, and I'm resorting to requests.post().
Hey @jacobmsmall thank you for opening this issue here.
A fix has now been pushed to the development branch.
You can install the development version of PyDrive using:
pip install git+https://github.com/googledrive/PyDrive.git@development#egg=PyDrive
Specifying optional parameters is now possible as additional parameters to the InsertPermission() function like so:
file1.InsertPermission({'type': 'user',
'value': '[email protected]',
'role': 'reader'}, sendNotificationEmails=False)
Please see the official docs here for all parameters available.
Hello. I have the same issue in the latest version Pydrive. Seeing the official document, they provide those additional parameters.
(https://developers.google.com/drive/api/v3/reference/permissions/create)
Hey @jacobmsmall thank you for opening this issue here.
A fix has now been pushed to the
developmentbranch.You can install the
developmentversion of PyDrive using:pip install git+https://github.com/googledrive/PyDrive.git@development#egg=PyDriveSpecifying optional parameters is now possible as additional parameters to the
InsertPermission()function like so:file1.InsertPermission({'type': 'user', 'value': '[email protected]', 'role': 'reader'}, sendNotificationEmails=False)Please see the official docs here for all parameters available.
When do you intend to release this?