在有關(guān)Apps腳本/ Appengine的教程中:https://developers.google.com/apps-script/articles/appengine嘗試運(yùn)行g(shù)oogle_appengine/dev_appserver.py google-apps-script/響應(yīng)時: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.comCRITICAL 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-tutorialversion: 1runtime: goapi_version: go1handlers:- url: /* script: _go_app也可以,- url: /rpc并且不起作用。由于代碼是Python,是否有可能在App Engine中將App腳本和Go鏈接起來?
2 回答

幕布斯7119047
TA貢獻(xiàn)1794條經(jīng)驗(yàn) 獲得超8個贊
該示例演示了將Google Apps腳本前端與以Python編寫的Google App Engine(GAE)后端一起使用。GAE當(dāng)前運(yùn)行以Java,Python,Go和PHP編寫的應(yīng)用程序。
那個特定的Python后端接受并生成JSON格式的消息。因此,要是否通過GAE類似地鏈接Apps Script和Go,您可能需要使用net / http庫和encoding / json庫來復(fù)制Python后端的功能。
有關(guān)將這些庫一起使用的示例,請查看this,this和this。
有關(guān)將Go與GAE一起使用的示例,請查看this和this。

慕少森
TA貢獻(xiàn)2019條經(jīng)驗(yàn) 獲得超9個贊
該教程的代碼使用Python和Javascript。如果要使用go運(yùn)行時,則必須重寫Go中的Python部分。
- 2 回答
- 0 關(guān)注
- 262 瀏覽
添加回答
舉報
0/150
提交
取消