Skip to content

Instantly share code, notes, and snippets.

@jamesduncombe
Last active September 11, 2020 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesduncombe/515eaeba7b76ee14c7e6bdb58c69b766 to your computer and use it in GitHub Desktop.
Save jamesduncombe/515eaeba7b76ee14c7e6bdb58c69b766 to your computer and use it in GitHub Desktop.
Sample letterb.in JSON response
[
{
"to": "2LrV4qq@letterbin.io",
"text": "The text version of the email if it exists or an empty string",
"subject": "Test",
"received": "2016-04-29T14:26:24Z",
"raw_mime": "raw_mime/bf7900f6d3077859ba649ad5b4556512e8de7fc…",
"original_html": "Unmodified HTML from the email OR the raw text version (liable to change)",
"id": "a3e2b1e0-cd13-48a8-bd51-abcf5c99f137",
"html": "Modified HTML of the email - all attachments that were inlined are changed to <img> tags etc",
"headers": [
[ "header", "value" ],
[…]
],
"attachments": [
{
"mime_type": "image/png",
"filename": "letterbin.png",
"data": "attachments/bf7900f6d3077859ba649ad5b4556512e8de7fc…",
"attached": true
}
]
},
//…
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment