如何使用范围"https://www.googleapis.com/auth/script.webapp.deploy"; [英] How to use scope "https://www.googleapis.com/auth/script.webapp.deploy"
问题描述
当您将此范围添加到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:
据我所知,此范围将使开发人员可以将插件作为Web应用程序部署(为每个插件用户分开的 Web应用程序部署,而不是仅 > Web应用程序,当我们在脚本编辑器中手动
Deploy as web app
手动时)
As I understand, this scope will allow the developer to deploy the addon as a web app (a separated web app for each addon user, not the only web app when we
Deploy as web app
manually in the script editor)
我的问题是如何实际使用此范围来将该应用程序发布为网络应用程序" ?
我的意思是在代码中必须为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";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!