简体   繁体   English

如何从谷歌应用程序引擎为java调用谷歌应用程序脚本

[英]how to call a google app script from google app engine for java

I have a google app script which I want to invoke from the Google App Engine for Java. 我有一个谷歌应用程序脚本,我想从谷歌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. 请指教。

I had the same question 6 months ago. 我6个月前也有同样的问题。 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. 这是使用GUI的一部分。 See fi this totorial : http://code.google.com/googleapps/appsscript/articles/twitter_tutorial.html 请参阅fi 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. 我的想法是你使用urlfetch从app引擎向这个服务发出请求。 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. 请参阅Henrique的这篇文章: http//www.google.com/support/forum/p/apps-script/thread?tid = 3c339ede3f4e4afb& hl = zh-CN如果您解决了问题, 告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM