检索表单和回复
借助 Google Forms API,您可以检索表单内容、设置和元数据,以及最终用户的表单回复。本页介绍了如何执行这些任务。
准备工作
在继续执行本页面上的任务之前,请先执行以下任务:
- 按照抢先体验计划说明完成授权/身份验证和凭据设置。
检索表单内容和元数据
如需检索表单的内容、设置和元数据,请使用表单 ID 调用 forms.get()
方法。
如需检索表单中的所有回复,请使用表单 ID 调用 forms.responses.list()
方法。
如需从表单中检索特定回复,请使用表单 ID 和回复 ID 调用 forms.responses.get()
方法。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-04-09。
[null,null,["最后更新时间 (UTC):2025-04-09。"],[],["The Google Forms API allows retrieving form data and responses. To begin, set up authorization/authentication. To get form content, settings, and metadata, use `forms.get()` with the form ID. To retrieve all responses, use `forms.responses.list()` with the form ID. For a single response, use `forms.responses.get()` with both the form ID and specific response ID. Python and Node.js code examples are provided for each action.\n"]]