Ghost/ghost/mailgun-client/test/fixtures/all-1.json
Daniel Lockyer 8a32efac1f
Added further tests to mailgun-client package
refs https://github.com/TryGhost/Toolbox/issues/363

- this copies over tests from `email-analytics-provider-mailgun` that
  are more relevant here
- there is now duplication in tests across the two packages but this
  will be resolved soon
2022-08-10 19:02:53 +02:00

65 lines
1.7 KiB
JSON

{
"items": [
{
"event": "delivered",
"recipient": "recipient1@gmail.com",
"user-variables": {
"email-id": "5fbe5d9607bdfa3765dc3819"
},
"message": {
"headers": {
"message-id": "0201125133533.1.C55897076DBD42F2@domain.com"
}
},
"timestamp": 1606399301.266528
},
{
"event": "failed",
"severity": "temporary",
"recipient": "recipient2@gmail.com",
"user-variables": {
"email-id": "5fbe5d9607bdfa3765dc3819"
},
"message": {
"headers": {
"message-id": "0201125133533.1.C55897076DBD42F2@domain.com"
}
},
"timestamp": 1606399301.266528
},
{
"event": "failed",
"severity": "permanent",
"recipient": "recipient3@gmail.com",
"user-variables": {
"email-id": "5fbe5d9607bdfa3765dc3819"
},
"message": {
"headers": {
"message-id": "0201125133533.1.C55897076DBD42F2@domain.com"
}
},
"timestamp": 1606399301.266528
},
{
"event": "unsubscribed",
"recipient": "recipient4@gmail.com",
"user-variables": {
"email-id": "5fbe5d9607bdfa3765dc3819"
},
"message": {
"headers": {
"message-id": "0201125133533.1.C55897076DBD42F2@domain.com"
}
},
"timestamp": 1606399301.266528
}
],
"paging": {
"previous": "https://api.mailgun.net/v3/domain.com/events/all-1-previous",
"first": "https://api.mailgun.net/v3/domain.com/events/all-1-first",
"last": "https://api.mailgun.net/v3/domain.com/events/all-1-last",
"next": "https://api.mailgun.net/v3/domain.com/events/all-1-next"
}
}