2013-08-23 48 views

回答

7

是的,你可以但有一些限制 如果你發佈你的應用程序腳本代碼作爲一個web應用程序,可以公開訪問,你可以向webapp URL發出GET請求來執行應用程序腳本代碼。

doGet(e){ 
//use e.parameter here 
//write your apps script code 
return ContentService.createTextOutput('your return content'); 
} 

發佈之後,說你有喜歡

https://script.google.com/macros/s/djihwerd98ejdeijded/exec 

一個URL現在從您的Chrome應用程序的請求

GET https://script.google.com/macros/s/djihwerd98ejdeijded/exec?param=value 
+0

你能提供一個最小的工作示例? – qed

+0

@qed上面的示例代碼是在上述情況下工作正常的最小代碼。 –

相關問題