Skip to content

Instantly share code, notes, and snippets.

@dpflucas
Last active August 29, 2015 14:13
Show Gist options
  • Save dpflucas/2942fe926d3f4356a300 to your computer and use it in GitHub Desktop.
Save dpflucas/2942fe926d3f4356a300 to your computer and use it in GitHub Desktop.
Example of a message sent from Context.io web hook
{
"account_id": "54bdb60775f4ec2b4622cc5c",
"webhook_id": "54bdb609facadd4f7ddce665",
"timestamp": 1421719181,
"message_data": {
"email_message_id": "<CAE4oUMyRuqFOr-jdqQN9_A=yD7teJSu0O5xttAPVC8Lc=ANedQ@mail.gmail.com>",
"addresses": {
"from": {
"email": "[email protected]",
"name": "Diogo Lucas"
},
"to": [
{
"email": "[email protected]",
"name": "whitesmith.technology"
}
]
},
"message_id": "54bdb68dbc0800a5438b4567",
"sources": [
{
"label": "whitesmith.technology::gmail"
}
],
"gmail_message_id": "14b051107cea1b2f",
"gmail_thread_id": "14b04f94c7f4f21c",
"files": [],
"person_info": {
"[email protected]": {
"thumbnail": "https://secure.gravatar.com/avatar/17c30d75937b56d904d55d426c402ec5?s=50&d=https%3A%2F%2Fs3.amazonaws.com%2Fcontextio-icons%2Fcontact.png"
},
"[email protected]": {
"thumbnail": "https://secure.gravatar.com/avatar/537d094fcb7288fcd5d9ceabb57eca87?s=50&d=https%3A%2F%2Fs3.amazonaws.com%2Fcontextio-icons%2Fcontact.png"
}
},
"date": 1421719156,
"date_indexed": 1421719181,
"date_received": 1421719177,
"subject": "Teste",
"folders": [
"[Gmail]/Importante",
"\\Important",
"Caixa de entrada",
"\\Inbox"
],
"body": [
{
"type": "text/plain",
"charset": "utf-8",
"content": "Mensagem simples para testes.\r\n\r\nDiogo Lucas\r\n",
"body_section": "1"
},
{
"type": "text/html",
"charset": "utf-8",
"content": "<div dir=\"ltr\">Mensagem simples para testes.<div><br></div><div>Diogo Lucas</div></div>\r\n",
"body_section": "2"
}
]
},
"token": "CyKp5V8mqncFVHgi6WGmkifMeVSo1OrJQAyl74XREULLPTMOFP",
"signature": "0170c85dd25e69cb930fb944731f95ceed7ff718ccd1c46f2f2cb9f8300cbb2c"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment