Skip to content

Instantly share code, notes, and snippets.

@adrienTchounkeu
Last active April 17, 2023 14:03
Show Gist options
  • Save adrienTchounkeu/af41ad8426f9d68c84429458c4739e71 to your computer and use it in GitHub Desktop.
Save adrienTchounkeu/af41ad8426f9d68c84429458c4739e71 to your computer and use it in GitHub Desktop.
Response sent from Mandrill via POST
{
"mandrill_events": [
{
"event": "send",
"msg": {
"ts": 1365109999,
"subject": "This an example webhook message",
"email": "example.webhook@mandrillapp.com",
"sender": "example.sender@mandrillapp.com",
"tags": ["webhook-example"],
"opens": [],
"clicks": [],
"state": "sent",
"metadata": {
"user_id": 111
},
"_id": "exampleaaaaaaaaaaaaaaaaaaaaaaaaa",
"_version": "exampleaaaaaaaaaaaaaaa"
},
"_id": "exampleaaaaaaaaaaaaaaaaaaaaaaaaa",
"ts": 1384954004
},
{
"event": "deferral",
"msg": {
"ts": 1365109999,
"subject": "This an example webhook message",
"email": "example.webhook@mandrillapp.com",
"sender": "example.sender@mandrillapp.com",
"tags": ["webhook-example"],
"opens": [],
"clicks": [],
"state": "deferred",
"metadata": {
"user_id": 111
},
"_id": "exampleaaaaaaaaaaaaaaaaaaaaaaaaa1",
"_version": "exampleaaaaaaaaaaaaaaa",
"smtp_events": [
{
"destination_ip": "127.0.0.1",
"diag": "451 4.3.5 Temporarily unavailable, try again later.",
"source_ip": "127.0.0.1",
"ts": 1365111111,
"type": "deferred",
"size": 0
}
]
},
"_id": "exampleaaaaaaaaaaaaaaaaaaaaaaaaa1",
"ts": 1384954004
}
]
}
@adrienTchounkeu
Copy link
Author

To add reference : This Gist has been borrowed from https://gist.github.com/ramonsmits/7563502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment