google-apps-script - Cannot get authorization dialog to show with Google Apps Script
问题描述
I've got a Google Apps Script that I have been working on to manage an event's resources - it's working fine I'm hitting an API and updating the sheet with my Python code.
I then added functionality to notify users via email that a video is ready to be approved. I've already seen the authorisation dialog and allowed the script to use my Gmail account etc.
But when running my script with the installable trigger added it's showing this:
The script doesn't have permission to perform that action. Required permission: (https://www.googleapis.com/auth/gmail.send || https://www.googleapis.com/auth/gmail.compose || https://www.googleapis.com/auth/gmail.modify || https://mail.google.com/ || https://www.googleapis.com/auth/gmail.addons.current.action.compose) at onCellEdit(Code:60)
In my StackDriver Error logs.
I cannot get the Google Apps script to re-authorise the Gmail app I wrote to save my life. Does anyone have experience with this and know how to force the script reauthorization?
解决方案
您可以尝试使用 使您的授权无效ScriptApp.invalidateAuth()
。
推荐阅读
- .net-core - 在 Blazor 服务器端项目中获取引用者
- python - 我如何使用带有python的aws lambda函数在S3上上传大约大于2 mb的大图像
- php - 确定当前页面所在的目录
- javascript - jQuery 移动日历延迟
- javascript - 如何按选择的顺序将多个文件上传到 Firebase 存储?
- git - docker-compose SSL 证书问题:从 git repo 构建时的自签名证书
- python - 导入时如何使odoo计算关系字段自动计算?
- javascript - 如何按字母顺序对下拉菜单项进行排序?
- matlab - 如何使用 Matlab APP DESIGNER 在用户界面中同时显示两个单独的图像?
- r - 反转翻转的 x 轴