在 Appmaker 中下载文件
Download File in Appmaker
我在 Appmaker 中创建了一个应用程序,我想从 Appmaker 中的云端硬盘表格下载某些报告。为此,我目前正在使用 Drive API 创建 SpreadSheet。我还想添加下载功能,允许用户在本地计算机上下载电子表格。
我研究了允许用户使用 ContentService 下载文件的 Appscript,但是我没有任何 HTMl 页面可以调用此方法。有没有其他选择?
您似乎可以使用 DriveApp Apps Script 服务
下载 URL
// Server script
var downloadUrl = DriveApp.getFileById(FileIdGoesHere).getDownloadUrl();
我在 Appmaker 中创建了一个应用程序,我想从 Appmaker 中的云端硬盘表格下载某些报告。为此,我目前正在使用 Drive API 创建 SpreadSheet。我还想添加下载功能,允许用户在本地计算机上下载电子表格。
我研究了允许用户使用 ContentService 下载文件的 Appscript,但是我没有任何 HTMl 页面可以调用此方法。有没有其他选择?
您似乎可以使用 DriveApp Apps Script 服务
下载 URL// Server script
var downloadUrl = DriveApp.getFileById(FileIdGoesHere).getDownloadUrl();