当我列出部署时,我正在使用 Java API 在电子表格上调用 AppScript 函数
List<Deployment> deployments = projects.deployments().list("XXX").execute().getDeployments();
我可以看到我的部署,但 deployment.getFunctionSet() 是 NULL 所以当我打电话时
Operation op = service.scripts().run(
"XXX",
new ExecutionRequest().setDevMode(true).setFunction("exportJson")
).execute();
我明白了
{
"code" : 404,
"errors" : [ {
"domain" : "global",
"message" : "Requested entity was not found.",
"reason" : "notFound"
} ],
"message" : "Requested entity was not found.",
"status" : "NOT_FOUND"
}
问题 - 如何从谷歌应用脚本调用函数?)