我正在尝试允许用户使用他们的日历服务登录到web应用程序(例如。Google Calendar,Outlook),然后每当他们的日历事件开始或结束时,我希望触发一个NodeJS服务。
我的想法是尝试以以下方式使用pipedream.com (尽管只是一个想法,非常乐意使用另一种方法):
1. User logs in to their calendar service via my web app, or perhaps provides a webhook or equivalent
2. I store their calendar credentials and then pass them to a service such as Pipedream
3. On calendar event start or end, Pipedream then triggers my NodeJS service我一直在想如何将用户的日历凭证/webhook传递给Pipedream,因为它需要在设置时登录:

任何帮助都将不胜感激!
发布于 2020-11-16 00:07:13
Firebase云函数在这里是一个很好的解决方案。云函数触发器允许以一种非常简单的方式triggered at a specific time执行无服务器的node.js函数:
exports.scheduledFunctionCrontab = functions.pubsub.schedule('5 11 * * *')
.timeZone('America/New_York') // Users can choose timezone - default is America/Los_Angeles
.onRun((context) => {
console.log('This will be run every day at 11:05 AM Eastern!');
return null;
});最大的优点是您只需为函数的执行时间付费,因此您无需担心服务器在会议(触发函数)之前处于空闲状态。
https://stackoverflow.com/questions/64846350
复制相似问题