我正在寻找一种功能来通知客户他们有 48 小时的时间下载一组文档,然后在 48 小时后删除客户对 Google 网站的访问权限。定时事件处理程序似乎并没有真正提供此功能?
function Remove_people( site_name, client_email ) {
var domain = "mydomain.com" ;
var site = SitesApp.getSite(domain, site_name );
site.removeEditor( client_email );
// Some counter-timer function???
the_url = site.getUrl();
//email a link to the client
MailApp.sendEmail(client_email,
"Your Documents are ready!",
"Your documents are accessible for 48hrs at the url below: \n\n " +
the_url + "\n\n",
{name:"My Name"});*/
Logger.log("Done!");
}