无法获得授权对话框以与Google

无法获得授权对话框以与Google

本文介绍了无法获得授权对话框以与Google Apps脚本一起显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在使用Google Apps脚本来管理活动的资源-工作正常,我点击了API,并使用我的Python代码更新了工作表.

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.

然后,我添加了一些功能,可以通过电子邮件通知用户准备批准视频.我已经看到了授权对话框,并允许脚本使用我的Gmail帐户等.

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:

在我的StackDriver错误日志中.

In my StackDriver Error logs.

我无法获得Google Apps脚本来重新授权为拯救生命而编写的Gmail应用程序.是否有人对此有经验并知道如何强制脚本重新授权?

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

You can try invalidating your authorization with ScriptApp.invalidateAuth().

这篇关于无法获得授权对话框以与Google Apps脚本一起显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 07:05