Gspread共享功能是否不再发送电子邮件通知?

时间:2019-10-23 07:55:04

标签: gspread

我正在将python 3.7.1与gspread库版本3.1.0一起使用。

直到2019年10月4日,每次我与用户共享电子表格时,该用户都会收到一封电子邮件通知。

从10月4日开始,仅与用户共享电子表格(可以在google驱动器中看到),但不会同时通过电子邮件通知用户。可能是什么问题?

我尝试为gspread models.py中的共享函数描述程序设置notify参数notify = True,但仍然无法正常工作:

def共享(自身,值,perm_type,角色,notify = True,email_message = None,with_link = False):         “”“与其他帐户共享电子表格。

我的分享功能如下:

def share_spreadsheet_with_users(自己,users_to_share_with):     “”“

:param users_to_share_with: the users with whom the spreadsheet will be shared
:return:
"""
for user in users_to_share_with:
    self.spreadsheet.share(user, perm_type='user', role='writer')

在上面的代码中,self.spreadsheet是一个新创建的电子表格,其类型为:gspread.Client

我希望还会收到一封邮件通知,说明该文件已与我共享。 结果是邮件通知不再出现。

0 个答案:

没有答案