将sendgrid / mail / send事件链接到Webhook数据

问题描述

我正在使用Sendgrid,并尝试使用/ mail / send API将send事件链接到从webhook接收到的有效负载。下面是来自webhook的有效负载示例。

{
"email": "example@test.com","timestamp": 1601506622,"smtp-id": "<14c5d75ce93.dfd.64b469@ismtpd-555>","event": "open","category": [
  "cat facts"
],"sg_event_id": "RvFIFK22K8raWok5Q7vMjw==","sg_message_id": "14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0","useragent": "Mozilla/4.0 (compatible; MSIE 6.1; Windows XP; .NET CLR 1.1.4322; .NET CLR 2.0.50727)","ip": "255.255.255.255"

}

从上面的示例有效负载中,我可以看到'sg_event_id'是可用的,但是,在对/ mail / send(https://sendgrid.com/docs/api-reference/)API进行POST之后-它不会返回'sg_event_id'。

如何从发送事件中获取“ sg_event_id”,以便将其链接到从webook接收的数据?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...