关于 Apps 脚本/Appengine 的教程:
https://developers.google.com/apps-script/articles/appengine
当尝试运行 google_appengine/dev_appserver.py google-apps-script/
时,响应是:
WARNING 2012-09-06 14:56:33,570 rdbms_mysqldb.py:74] The rdbms API is not available because the MySQLdb library could not be loaded.
INFO 2012-09-06 14:56:33,840 appengine_rpc.py:163] Server: appengine.google.com
CRITICAL 2012-09-06 14:56:33,842 appcfg.py:561] The api_version specified in app.yaml (1) is not supported by this release of the SDK. The supported api_versions are ['3', 'go1'].
我尝试了以下 app.yaml,但它不起作用。
application: google-apps-script-tutorial
version: 1
runtime: go
api_version: go1
handlers:
- url: /*
script: _go_app
还有 - url:/rpc
但它不起作用。由于代码是 Python,是否可以在应用引擎中将 App 脚本和 Go 链接起来?
最佳答案
该教程的代码是用 Python 和 Javascript 编写的。如果你想使用 go 运行时,你将不得不在 Go 中重写 Python 部分。
关于google-app-engine - 使用 Go 的 App 脚本 appengine 教程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12304239/