gpt4 book ai didi

google-docs - 当 Google Sheet 编辑时触发 webhook

转载 作者:行者123 更新时间:2023-12-03 13:32:03 25 4
gpt4 key购买 nike

我制作了一个谷歌表,用于与同事共享待办事项列表。

我希望在修改该表时,将消息发送到 slack channel 。

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

是否有合适的 API 或 webhook?

最佳答案

有 Drive API 的 Push Notifications它可以让你观察资源的变化。您还可以使用 Apps 脚本的 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也可能提供额外的见解。

关于google-docs - 当 Google Sheet 编辑时触发 webhook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47690332/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com