小编Rov*_*ver的帖子

从外部URL调用自定义GAS功能

我想调用我在Google Apps脚本中编写的自定义函数.当我执行getJSON时,我想它会自动运行我的doGet(e).

我的Javascript:

$.getJSON(https://script.google.com/macros/s/[ID]/exec, function(data){ 
   //code here
});
Run Code Online (Sandbox Code Playgroud)

例如,有没有办法调用我的自定义函数

我的Google Apps脚本:

function getNumberOfFans(e){ 
   //code here
}
Run Code Online (Sandbox Code Playgroud)

我是否必须在URL中添加某种额外的功能参数?

url function call google-apps-script

6
推荐指数
1
解决办法
2868
查看次数

标签 统计

call ×1

function ×1

google-apps-script ×1

url ×1