Permissions.Insert.setSendNotificationEmails(false)不再起作用? [英] Permissions.Insert.setSendNotificationEmails(false) does not work anymore?

查看:71
本文介绍了Permissions.Insert.setSendNotificationEmails(false)不再起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Google Drive Java API传输文件所有权时,我一直在使用阻止通知电子邮件的功能.它运行良好,但最近通知开始出现. API不再起作用的原因有所更改.有没有其他方法可以阻止电子邮件或在这里做什么?

I have been using the feature of preventing notification emails when transferring ownership of files using Google Drive Java API. It has worked nicely but now recently the notification started to appear. Has something changed why the API does not work anymore. Is there a way to block the emails in some other way or what to do here?

代码段如下所示,其中我禁用了通知电子邮件:

The code snippet looks like this, where I disable notification emails:

Insert insert = service.permissions().insert(fileId, newPerm);
insert.setSendNotificationEmails(false);
newPerm = insert.execute();

我已经使用AppEngine 1.9.4& 1.9.5以及多个Drive API版本1.16、1.17以及最新的1.18-rc

I have tested with AppEngine 1.9.4 & 1.9.5 and also several Drive API versions 1.16, 1.17 and also latest 1.18-rc

推荐答案

更新:现已修复.

是的,这是与独立于API版本的最近更改推送相比,行为上的更改.目前,没有任何变通办法可以让您既转移所有权又不发送电子邮件.

Yes, this is a change in behavior from a recent change push that is independent of API version. At this time there isn't any workaround that will let you both transfer ownership and not send an email.

Drive SDK团队已意识到这一点,并正在研究如何立即提供更好的解决方案.不幸的是,我们还无法提供您的预计到达时间.

The Drive SDK team is aware of it and are investigating how to put in a better solution right now. Unfortunately we can't give you an ETA yet.

这篇关于Permissions.Insert.setSendNotificationEmails(false)不再起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆