-
Notifications
You must be signed in to change notification settings - Fork 780
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #804 from aroach/event-webhook-docker
Event webhook docker
- Loading branch information
Showing
16 changed files
with
176 additions
and
141 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const express = require('express') | ||
const app = express() | ||
const port = 3000 | ||
|
||
const eventWebhook = require('./routes/events') | ||
const parseWebhook = require('./routes/inbound-parse') | ||
|
||
app.get('/', (req, res) => res.status(200).json({status: 'ok'})) | ||
|
||
app.use('/event_webhook', eventWebhook) | ||
app.use('/parse_webhook', parseWebhook) | ||
|
||
|
||
app.listen(port, () => console.log(`SendGrid webhook listener started on port ${port}!`)) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
[ { email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'processed', | ||
category: 'cat facts', | ||
sg_event_id: '3VQNwQVlOAoGt_mNmMf7Uw==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'deferred', | ||
category: 'cat facts', | ||
sg_event_id: 'Ge2kc923E-UtbFcT6uJCtw==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0', | ||
response: '400 try again later', | ||
attempt: '5' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'delivered', | ||
category: 'cat facts', | ||
sg_event_id: 'WexDVCfDCkJ22oAzZDiiYw==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0', | ||
response: '250 OK' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'open', | ||
category: 'cat facts', | ||
sg_event_id: 'mSJ9e9BP2yLTzvStpKhcgw==', | ||
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' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'click', | ||
category: 'cat facts', | ||
sg_event_id: 'WMOHWv9ZJxMG0-YhbdoTPA==', | ||
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', | ||
url: 'http://www.sendgrid.com/' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'bounce', | ||
category: 'cat facts', | ||
sg_event_id: 'wMeZZPhZvsPgUP23YyDFKA==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0', | ||
reason: '500 unknown recipient', | ||
status: '5.0.0' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'dropped', | ||
category: 'cat facts', | ||
sg_event_id: 'tIulrwSK8TW4_o1JC79pMg==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0', | ||
reason: 'Bounced Address', | ||
status: '5.0.0' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'spamreport', | ||
category: 'cat facts', | ||
sg_event_id: 'fRCOMWprw3XpGSyNSFjybw==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'unsubscribe', | ||
category: 'cat facts', | ||
sg_event_id: 'hZdan0mTcEueyH0RM-LT8w==', | ||
sg_message_id: '14c5d75ce93.dfd.64b469.filter0001.16648.5515E0B88.0' }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'group_unsubscribe', | ||
category: 'cat facts', | ||
sg_event_id: 'bleyaOwyAFHJnkQedbujGw==', | ||
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', | ||
url: 'http://www.sendgrid.com/', | ||
asm_group_id: 10 }, | ||
{ email: '[email protected]', | ||
timestamp: 1539462305, | ||
'smtp-id': '<14c5d75ce93.dfd.64b469@ismtpd-555>', | ||
event: 'group_resubscribe', | ||
category: 'cat facts', | ||
sg_event_id: 'nYfQZaZgb0ircWsDYc21Kw==', | ||
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', | ||
url: 'http://www.sendgrid.com/', | ||
asm_group_id: 10 } ] |
File renamed without changes.
119 changes: 0 additions & 119 deletions
119
...es/inbound-parse-docker/package-lock.json → examples/webhooks-docker/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.