【发布时间】:2020-03-19 17:03:29
【问题描述】:
我已经使用 Google Apps 脚本构建了一个 Google 幻灯片演示文稿。
var docId = DriveApp.getFileById(templateId).makeCopy().getId();
var newDoc = DriveApp.getFileById(docId).setName(newDocName);
var newDocUrl = newDoc.getUrl(); // This gets the URL of the editing view. I want the presentation view.
如何发布它然后获取发布的演示文稿的 URL?
Here are the docs. 我正在寻找类似的东西:
var publishedNewDoc = newDoc.publish();
var newDocPublishedUrl = publishedNewDoc.getPublishedUrl();
【问题讨论】:
标签: google-apps-script google-slides-api google-slides