如何从 Google App Engine for Java 调用 Google App 脚本

发布于 2024-12-08 19:17:58 字数 126 浏览 4 评论 0原文

我有一个谷歌应用程序脚本,我想从 Google App Engine for Java 调用它。有人可以指导如何调用这样的脚本吗?

我尝试用谷歌搜索这个,但只找到了很多关于如何进行相反操作的信息。

请指教。

I have a google app script which I want to invoke from the Google App Engine for Java. Can someone please guide on how to invoke such a script?

I tried to Google this and found only lots of information on how to do the reverse.

Please advise.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

要走干脆点 2024-12-15 19:17:58

6个月前我也有同样的问题。我可以使用脚本计时器解决我的问题。

但也许这会起作用。我还没有测试过。您可以将应用程序脚本发布为服务。这是使用 GUI 的一部分。
请参阅此教程:http://code.google.com/googleapps/appsscript/ articles/twitter_tutorial.html

我的想法是,您使用 urlfetch 从应用程序引擎向此服务发出请求。
我没有测试这个,但我认为它可以工作。

请参阅 Henrique 的这篇文章:
http://www.google.com /support/forum/p/apps-script/thread?tid=3c339ede3f4e4afb&hl=en
如果您解决了问题,请告诉我。

I had the same question 6 months ago. I could solve my problem using script timers.

But maybe this will work. I did not test it yet. You can publish an apps script as a service. That's part of working with the GUI.
See f.i. this totorial : http://code.google.com/googleapps/appsscript/articles/twitter_tutorial.html

My idea is that you make a request to this service from app engine with urlfetch.
I did not test this, but I think it can work.

See als this post from Henrique :
http://www.google.com/support/forum/p/apps-script/thread?tid=3c339ede3f4e4afb&hl=en
Let me know if you solved your problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文