【问题标题】:Response of cloud function云功能响应
【发布时间】:2019-06-26 12:25:04
【问题描述】:

我想知道当 Firebase Cloud Function 成功执行时是否可以获得响应消息。

情况是我正在尝试发送电子邮件,但我想确保收件人发送和接收它。

【问题讨论】:

    标签: firebase google-cloud-functions


    【解决方案1】:

    如果您按照 Firebase 的建议使用 Sendgrid 发送电子邮件(参见 https://github.com/firebase/functions-samples/tree/master/quickstarts/email-users),您可以使用 Sendgrid 的事件 Webhook,参见 https://sendgrid.com/docs/for-developers/tracking-events/event/#engagement-events 和 https://sendgrid.com/docs/for-developers/tracking-events/getting-started-event-webhook/。

    如上面最后一个链接中所述,“SendGrid 的 Event Webhook 将通知 您通过 HTTP POST 选择的 URL,其中包含有关 SendGrid 处理您的电子邮件时发生的事件的信息。”

    您只需设置一个HTTP Cloud Function,Sendgrid 将为您选择的事件调用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-10-22
      • 2019-01-03
      • 2019-12-18
      • 2020-09-26
      • 1970-01-01
      • 2020-04-29
      • 2021-12-15
      相关资源
      最近更新 更多