我试图用Google表格捕获Web钩子并将其发送到我自己的api,我想要的确切是在修改后发送行数据。 这是我在Google Apps脚本中添加的代码。
function onEdit(e){
UrlFetchApp.fetch("https:www.url.com/script.php",e);
}
每次我编辑一个单元格时都会发生此错误。
Google Apps Script: Exception: You do not have permission to call UrlFetchApp.fetch.
Required permissions: https://www.googleapis.com/auth/script.external_request
这是appscript.json文件的内容
{
"timeZone": "Pacific/Pago_Pago",
"dependencies": {
},
"exceptionLogging": "STACKDRIVER",
"oauthScopes": ["https://www.googleapis.com/auth/script.external_request"],
"runtimeVersion": "V8"
}