You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Google Forms API实现AppScript的createResponse功能?

在非AppScript环境中创建Google表单响应并获取编辑链接

我在AppScript中编写了一段代码,可创建Google表单响应并获取编辑链接,代码如下:

function createResponseTest() {
   var test_form = FormApp.create('test-form').setAllowResponseEdits(true);
   // Add a required item
   test_form.addTextItem().setRequired(true);

   // Create a blank response that hasn't completed the item
   var FormResponse = test_form.createResponse();
   const res = FormResponse.submit();
   const link = res.getEditResponseUrl();

   // Get a unique link to the response
   console.log(link);
}

我查阅了Google Forms官方文档,但未找到通过表单ID创建表单响应的方法,而AppScript中存在对应的createResponse方法。我希望在自己的服务器上运行类似test_form.createResponse()的功能,无需使用AppScript,但未能找到实现方式。请问我是否遗漏了相关内容,还是Google Forms API尚未功能完善?

编辑补充:
我已通过问题追踪器提交了该功能请求,可查看进度!


内容的提问来源于stack exchange,提问作者Peter S

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 05:42:12