在Google Sheet编辑时触发webhook

时间:2017-12-07 08:05:50

标签: google-docs webhooks google-docs-api

我制作了一张谷歌表,与同事分享待办事项清单。

我希望在修改该表时,将消息发送到松弛通道。

即使试图找到与此相关的api,我也不适合。

是否有适当的API或webhook?

1 个答案:

答案 0 :(得分:0)

还有Drive API的Push Notifications,可让您监视资源的变化。您还可以使用Apps Scripts的onEdit触发器,它更像是一个实时检查器。

function onEdit(e){
  // Set a comment on the edited cell to indicate when it was changed.
  var range = e.range;
  range.setNote('Last modified: ' + new Date());
}

forum也可能提供更多见解。