问题描述
当您将此范围添加到appscript.json文件的oauthScopes部分中时:
When you add this scope inside oauthScopes section in your appscript.json file:
"oauthScopes": [ "https://www.googleapis.com/auth/script.webapp.deploy", ]
当您尝试使用插件时,您会看到类似以下的内容:
you will see something like this when you attempt to use the addon:
我的问题是如何实际使用此范围来将该应用程序发布为网络应用程序" ?
我的意思是在代码中必须为ScriptApp.deployWebApp(...)或类似的内容,对吧?
I mean in code it must be ScriptApp.deployWebApp(...) or something like that, right?
但是我在这里找不到任何内容 https://developers .google.com/apps-script/reference/script/script-app
But I can't find anything here https://developers.google.com/apps-script/reference/script/script-app
推荐答案
恐怕当前是不可能的.在 ScriptApp.Service类中看到的驴子,您只能禁用Web应用程序对于脚本,请阅读其URL,但创建一个新URL.
I am afraid it currenty is not possible. Ass see in ScriptApp.Service class, you can only disable Web app for script, read their URL, but create new one.
这篇关于如何使用范围"https://www.googleapis.com/auth/script.webapp.deploy";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!