简体   繁体   English

SendGrid 的事件 Webhook URL

[英]SendGrid's Event Webhook URL

Problem : How to make SendGrid's Event Webhook URL dynamic ?问题:如何使 SendGrid 的 Event Webhook URL 动态化?

Issue :问题

I have three environments where I listen for events from SendGrid email webhook.我在三个环境中侦听来自 SendGrid 电子邮件 webhook 的事件。 I want to listen to or track each email from this three env then I tried to use this /v3/user/webhooks/event/settings endpoint to make the URL dynamic.我想收听或跟踪这三个环境中的每封电子邮件,然后我尝试使用这个 /v3/user/webhooks/event/settings 端点来使 URL 动态化。 But, it does not work until I change it manually from the mail setting.但是,在我从邮件设置中手动更改它之前,它不起作用。 在此处输入图像描述

A SendGrid user account can set one event webhook. SendGrid 用户帐户可以设置一个事件 webhook。 If you are working with multiple environments, then I recommend you set up a Subuser account for each environment.如果您使用多个环境,那么我建议您为每个环境设置一个子用户帐户 A Subuser is owned by a user account, but has its own resources, including its own event webhook.子用户由用户帐户拥有,但有自己的资源,包括自己的事件 webhook。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM