Download File in Appmaker

2019-02-20 14:15发布

I have created one app in Appmaker, I want to download certain reports from the Drive tables in Appmaker. For this currently I am creating SpreadSheet using Drive APIs. I want to add download feature as well which allows users to Download Spreadsheet in their local machine.

I have done research on Appscript which allows users to Download files using ContentService, however I do not have any HTMl page from where I can invoke this method. Are there any alternatives for this?

标签: appmaker
1条回答
来,给爷笑一个
2楼-- · 2019-02-20 14:31

It seems that you can get download URL using DriveApp Apps Script service

// Server script
var downloadUrl = DriveApp.getFileById(FileIdGoesHere).getDownloadUrl();
查看更多
登录 后发表回答