Web 从谷歌表单导入单元格值到网站?

Web 从谷歌表单导入单元格值到网站?,web,google-sheets,cell,Web,Google Sheets,Cell,我想知道是否有可能将谷歌表单中的单元格值导入网站? 谢谢你的帮助 可能有几种方法可以做到这一点。我会向独立应用程序脚本内容服务脚本发送HTTP请求,该脚本返回单元格的值。在应用程序脚本中编写程序: 创建一个doGet()函数: 我不知道您是否计划使用服务器端代码,或JavaScript AJAX请求,或者您的网站使用什么作为服务器端代码。但是您知道我如何将函数连接到html吗。我应该在html表中的哪里找到代码? function doGet() { //This Apps Script

我想知道是否有可能将谷歌表单中的单元格值导入网站?
谢谢你的帮助

可能有几种方法可以做到这一点。我会向独立应用程序脚本内容服务脚本发送HTTP请求,该脚本返回单元格的值。在应用程序脚本中编写程序:

创建一个
doGet()
函数:
我不知道您是否计划使用服务器端代码,或JavaScript AJAX请求,或者您的网站使用什么作为服务器端代码。

但是您知道我如何将函数连接到html吗。我应该在html表中的哪里找到代码?
function doGet() {
  //This Apps Script is Used to get a cell value out of a spreadsheet

  var theSpreadSheet = SpreadsheetApp.getFileById('Your File ID');
  var theSheet = theSpreadsheet.getSheetByName('sheet name');
  var theCell = theSheet.getRange("A1");
  var theContent = theRange.getValue();
  return ContentService.createTextOutput(theContent);
};