【发布时间】:2021-01-08 20:42:32
【问题描述】:
我想使用 Google Drive API 和使用 Google Apps 脚本设置的网络挂钩设置推送通知。我不知道这是否可能。
我无法弄清楚的部分步骤是domain verification steps. 我有一个使用 doGet 发布的网络应用程序,如下所示:
function doGet() {
refreshCandidates();
return HtmlService.createHtmlOutput('<b>google site verification</b>')
.addMetaTag('google-site-verification', 'Iu3xxxxxx')
.setSandboxMode(HtmlService.SandboxMode.IFRAME);
}
当我尝试验证 url 时,它给了我 https://script.google.com/...ZS2/exec 作为端点。但是当我尝试验证它是否击中https://script.google.com/...ZS2/exec/ 并找到一个完全不同的元标记。
有没有人成功地使用了驱动 api 并通过谷歌应用脚本推送通知?我错过了什么?
【问题讨论】:
标签: google-apps-script google-drive-api