【问题标题】:Google Apps Script - Tweet ApproverGoogle Apps 脚本 - 推文批准者
【发布时间】:2013-01-02 11:16:16
【问题描述】:

我一直在关注此处的指南:https://developers.google.com/apps-script/articles/twitter_tutorial

关于创建 Twitter 应用程序。

我一直在看下面的部分:

To get started, copy this spreadsheet containing the script for this tutorial. Once you've got your own copy of the spreadsheet, open it and you will notice the spreadsheet will be empty; that is intentional, as we won't be using any of the spreadsheet's cells in this tutorial.The first thing you need to do is publish your script as a service. To do this, open the script editor by clicking Tools > Script Editor... In the new window, click Publish > Publish as Service...

这实际上根本不起作用。

如果我打开电子表格并单击工具 > 脚本编辑器。我将进入脚本向导。然后它给了我创建一个新脚本的选项。该脚本只能发布到图库或作为 Web 应用程序。发布为服务选项在哪里?

谢谢

【问题讨论】:

    标签: google-apps-script


    【解决方案1】:

    我查看了教程页面,似乎模板电子表格确实没有包含脚本...

    但完整代码仍会在同一页面的末尾发布,因此您可以在脚本编辑器中复制/粘贴完整代码(从向导中选择新代码并删除其中的所有内容)并从那里开始。

    关于“发布为服务”这是现在称为部署为 webapp 的旧名称,过程略有不同,描述为 here ,您需要先保存一个版本(在文件菜单中管理版本),您将获得 2 个 url,一个用于开发,一个用于使用,两者都将从您的浏览器运行,并从 doGet() 函数开始。

    本教程中关于电子表格菜单中初始化和授权的其余部分保持不变,请按照教程说明进行操作。

    希望对你有帮助,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多