【问题标题】:how to get the URL of a google script webapp inside the webapp如何在 webapp 中获取 google script webapp 的 URL
【发布时间】:2012-07-26 15:14:54
【问题描述】:

我有一个作为 web 应用程序部署的 google 脚本。此 webapp 需要使用 webapp 的 URL 发送电子邮件,以便收件人可以使用该 URL 访问 webapp。如何在 webapp 中获取 URL?

【问题讨论】:

  • 为什么不简单地将其硬编码在电子邮件正文中?

标签: url google-apps-script web-applications


【解决方案1】:

您可以使用ScriptApp.getService().getUrl(); 在您的代码中获取已发布应用的 URL。

【讨论】:

  • 这只会给你 dev URL...而不是 prod URL。
猜你喜欢
  • 1970-01-01
  • 2014-07-08
  • 2011-07-06
  • 1970-01-01
  • 2010-11-20
  • 2019-06-27
  • 2012-12-24
相关资源
最近更新 更多