如何从 Google App Engine for Java 调用 Google App 脚本
我有一个谷歌应用程序脚本,我想从 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.