Each change in Drive Permission sends a notification. Is there any way to avoid this?
Thanks a lot in advance, Ridgh
Whenever you insert a new permission using the Drive API, you can set the optional sendNotificationEmails parameter to false to avoid sending this message:
sendNotificationEmails
https://developers.google.com/drive/v2/reference/permissions/insert
Here's what works in Java:
service.permissions().insert(fileId, newPermission).setSendNotificationEmails(false).execute();
Solution for PHP language:
$this->service->permissions->create($folder->id, $userPermission, array('fields' => 'id', 'sendNotificationEmail' => false));
Source: https://habr.com/ru/post/1497821/More articles:Apache.commons.io.IOUtils error in memory - androidFor loop and delimits in batch files - windowsTypeError: object is not a function - fetching collection data using Angular / rails - angularjsGlobalSettings onStart only fires after the first request - playframeworkIs there a more idiomatic way to get N random collection items in Clojure? - idiomsA block saved as an instance variable becomes nil - ioshow to check table permissions in sybase ase - sybaseChange the color without affecting anything previously done - javaNull Exception function on Android call - androidRemoving deserialization using SimpleXML - javaAll Articles