PyDrive icon indicating copy to clipboard operation
PyDrive copied to clipboard

InsertPermission() Query Parameters

Open jacobmsmall opened this issue 8 years ago • 3 comments

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().

jacobmsmall avatar Apr 18 '17 01:04 jacobmsmall

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.

RNabel avatar Apr 20 '17 09:04 RNabel

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)

fimenten avatar Mar 16 '19 13:03 fimenten

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.

When do you intend to release this?

nikclayton avatar Apr 24 '19 15:04 nikclayton