google-apps-script - 如何以编程方式将 Google 表格脚本发布/部署为 API 可执行文件?

标签 google-apps-script google-sheets google-apps-script-api

<分区>

我有一个包含脚本的 google 工作表,我想以编程方式执行以下操作。

  1. 以编程方式公开此 Google 电子表格。
  2. 我想以编程方式为任何用户(公共(public))执行与上述电子表格关联的脚本。

我能否以编程方式执行“Publish>部署为 API 可执行文件”?

最佳答案

您可能想查看最近的 updates in Release Notes看看是否有帮助。声明如下:

  • You can now deploy a script project directly from the project manifest.
  • We've updated the Publish script editor menu item to more accurately represent the various kinds of deployments a project can have, such as add-on, web app, or API executable deployments.

有关更多信息,您可能需要查看这些引用资料:

然后,对于当前不支持的功能,您可以查看或提交功能请求here .

关于google-apps-script - 如何以编程方式将 Google 表格脚本发布/部署为 API 可执行文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46976233/

相关文章:

javascript - 使用代码从 HTML 表单中获取所有输入字段名称

javascript - 在 Google Apps 脚本中连接字符串

javascript - 如何通过迭代计算时间

java - "Requested entity was not found."- Apps 脚本执行 API 错误

google-apps-script - 无权使用 setFormula Google appS 脚本

google-apps-script - 使用 google-apps-script 了解文件类型

google-apps-script - 向特定人群共享谷歌表格的应用程序脚本

google-apps-script - 将公式复制到范围。谷歌电子表格

javascript - 如何将事件监听器添加到 chrome 扩展内容脚本中的 google 表格链接?