Skip to content

Instantly share code, notes, and snippets.

@tkrynski
Created November 7, 2014 01:51
Show Gist options
  • Save tkrynski/892e5775ffa9fe6bd8ef to your computer and use it in GitHub Desktop.
Save tkrynski/892e5775ffa9fe6bd8ef to your computer and use it in GitHub Desktop.
email-builder request
{
"url": "http://internal-email-builder-prod-238214135.us-east-1.elb.amazonaws.com:4008/email-builder",
"headers": {
"x-app-id": "682"
},
"strictSSL": false,
"rejectUnauthorized": false,
"json": true,
"body": {
"appDoc": {
"id": "682",
"name": "CHOW",
"address": "San Francisco, CA"
},
"template": {
"app": "682",
"name": "",
"header": "",
"body": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /> <meta name=\"viewport\" content=\"width=device-width\"/> <title>Chow Newsletter</title> <link rel=\"stylesheet\" href=\"ink.css\"/> <style type=\"text/css\"> body, .body { background: #EEEBE8; } body, table.body, h1, h2, h3, h4, h5, h6, p { color: #444444 !important; } a { font-weight: bold; } table.columns td td, table.column td td { padding: 0 !important; } .block-image { margin-bottom: 16px; } .block-resources .resource img { margin-bottom: 16px; } .main-container { width: 630px; margin-top: 40px; background: #ffffff; } .main-container-padding { padding: 0 25px; } .bottom-container { margin-top: 10px; margin-bottom: 40px; } .outside-container { background: none; } .header .center { padding-bottom: 0; } .header-text { text-align: right; color: #808080 !important; font-size: 13px; padding-top: 22px !important; } .share-buttons { text-align: center !important; } .share-button { float: none !important; display: inline !important; } .style4 { text-align: center; } .style4 a { text-decoration: none } .style6 { font-style: italic; font-size: 12px; color: #727272 !important; } .style7 { font-family: Arial; font-size: small; } .gray-text { color: #727272 !important; } .gray-text a { color: #a1a1a1 !important; text-decoration: none; } .bt-footer { text-align: center; } </style></head><body> <table class=\"body\"> <tr> <td class=\"center\" align=\"center\" valign=\"top\"> <center> <table class=\"main-container\"> <tr> <td class=\"main-container-padding\"> <table class=\"container header\"> <tr> <td> <table class=\"row\"> <tr> <td class=\"wrapper last\"> <table class=\"twelve columns\"> <tr> <td class=\"center\"> <img class=\"center\" alt=\"Welcome to Chow\" src=\"http://images.boomtrain.com/B0nAghUwbDSYuSRrKeCupWoHlt3LUHXPOhFB4AgUY.png\" width=\"280\"> </td> <td class=\"expander\"></td> </tr> </table> </td> </tr> </table> <table class=\"row\"> <tr> <td class=\"wrapper last\"> <table class=\"twelve columns\"> <tr> <td> <hr /> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> {{ content }} <table class=\"container\"> <tr> <td> <table class=\"row\"> <tr> <td class=\"wrapper last style4\"> <table class=\"twelve columns\"> <tr> <td class=\"share-buttons\"> <h4 class=\"center\">Share Chow with friends:</h4> <a href=\"https://www.facebook.com/Chow\"> <img alt=\"Facebook Share\" src=\"http://images.boomtrain.com/HCQ320fOjxhrIWqX14JK495Oy9gD4qF8OjiLOqDk.png\" width=\"126\" height=\"36\" class=\"share-button\"> </a> <a href=\"https://twitter.com/CHOW\"> <img alt=\"Twitter Share\" src=\"http://images.boomtrain.com/ccDnr55MMcADPtOIwYeNlBXFTvelXx4EjSnBLONg8.png\" width=\"126\" height=\"36\" class=\"share-button\"> </a> <a href=\"http://www.pinterest.com/chow_/\"> <img alt=\"Pinterest Share\" src=\"http://images.boomtrain.com/5VLJcgCEZ0MfRrgZYN5hrp7PtLfLEHamtF0jE7gAOfA2.png\" width=\"126\" height=\"36\" class=\"share-button\"> </a> </td> <td class=\"expander\"></td> </tr> </td> </tr> </table> </td> </tr> </table> <table class=\"container gray-text\"> <tr> <td> <table class=\"row\"> <tr> <td class=\"wrapper last\"> <table class=\"twelve columns\"> <tr> <td valign=\"middle\" style=\"padding-top:24px;color:#8a8b8d;font-style:italic;font-size:12px;text-align:center\"> <a href=\"http://www.chow.com/\"> <img alt=\"See more at Chow.com\" src=\"http://images.boomtrain.com/RBUdFMcRhP9LDSvhUdiF1gvjyKmn1UMHnBAMlarPZA.png\" width=\"300\" height=\"47\" style=\"display: inline; float: none;\"> </a> </td> <td class=\"expander\"></td> </tr> <tr> <td> <div style=\"text-align:center\" class=\"style6\"> <br> {{ footer }} <br> <a href=\"http://www.chow.com/newsletters/?email={{ user.email }}\">Manage Newsletters</a> | <a href=\"http://chowhound.chow.com/boards/30\">Give Us Feedback</a> </div> </td> <td class=\"expander\"></td> </tr> </table> </td> </tr> </table> <table class=\"row\"> <tr> <td class=\"wrapper last\"> <table class=\"twelve columns\"> <tr> <td></td> <td class=\"expander\"></td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <table class=\"container outside-container bottom-container\"> <tr> <td> <table class=\"row\"> <tr> <td class=\"wrapper last\"> <table class=\"twelve columns\" valign=\"middle\"> <tr> <td class=\"gray-text\" style=\"font-size:11px;line-height:125%;text-align:center\"> <a href=\"https://secure.chow.com/users/sign_up\">Sign Up</a> | <a href=\"http://www.cbsinteractive.com/advertise/\">Advertising</a> | <a href=\"http://www.cbsinteractive.com/careers/\">Jobs</a> | <a href=\"http://www.chow.com/about\">About Us</a> | <a href=\"http://www.cbsinteractive.com/\">CBS Interactive</a><br> <br> <a href=\"http://www.chow.com/terms\">Terms &amp; Conditions</a> | <a href=\"https://cbsi.secure.force.com/CBSi/articles/FAQ/Privacy-Policy-Highlights?template=template_mobilepp\">Privacy Policy</a><br> <br> </td> <td class=\"expander\"></td> </tr> </table> </td> </tr> </tbody> </table> </td> </tr> </table> </center> </td> </tr> </table></body></html>",
"footer": "",
"emailFooter": "You may {{unsubscribe}} at any time you wish"
},
"person": {
"bsin": "1280735",
"appId": "682",
"app_member_id": "1280735",
"email": "pattyindel@gmail.com",
"age": 0,
"newsletter": "new-york-city",
"updatedAt": "Oct 31, 2014 01:22 PM",
"username": "shermybeagle"
},
"batch": {
"id": "53d98c853b172e3c04000178_1415314860621",
"notificationId": "53d98c853b172e3c04000178"
},
"layout": {
"rows": [
{
"columns": [
{
"span": 12,
"blocks": [
{
"type": 1,
"value": {
"img_src": "http://images.boomtrain.com/580/pDVYhcggNjRaWSjuryRwTE6C1ws7UkGQKNSRc2Q0FuI.jpg",
"href": "http://www.chow.com/food-news/156557/hearty-healthy-fall-breakfasts/",
"alt": "Red Flannel Hash"
}
},
{
"type": 2,
"value": {
"html": "\n\n\n\n\n\n\n\n<h3 style=\"box-sizing: content-box; line-height: 36px; margin-bottom: 0px; padding: 6px 0px 0px; font-family: Arial, Helvetica, sans-serif; color: rgb(51, 51, 51); font-size: 36px; clear: both; letter-spacing: normal;\">\n\n\n\n\n\n\n<!--[if gte mso 9]><xml>\n <o:DocumentProperties>\n <o:Template>Normal.dotm</o:Template>\n <o:Revision>0</o:Revision>\n <o:TotalTime>0</o:TotalTime>\n <o:Pages>1</o:Pages>\n <o:Words>23</o:Words>\n <o:Characters>132</o:Characters>\n <o:Company>CHOW</o:Company>\n <o:Lines>1</o:Lines>\n <o:Paragraphs>1</o:Paragraphs>\n <o:CharactersWithSpaces>162</o:CharactersWithSpaces>\n <o:Version>12.0</o:Version>\n </o:DocumentProperties>\n <o:OfficeDocumentSettings>\n <o:AllowPNG></o:AllowPNG>\n </o:OfficeDocumentSettings>\n</xml><![endif]--><!--[if gte mso 9]><xml>\n <w:WordDocument>\n <w:Zoom>0</w:Zoom>\n <w:TrackMoves>false</w:TrackMoves>\n <w:TrackFormatting></w:TrackFormatting>\n <w:PunctuationKerning></w:PunctuationKerning>\n <w:DrawingGridHorizontalSpacing>18 pt</w:DrawingGridHorizontalSpacing>\n <w:DrawingGridVerticalSpacing>18 pt</w:DrawingGridVerticalSpacing>\n <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>\n <w:DisplayVerticalDrawingGridEvery>0</w:DisplayVerticalDrawingGridEvery>\n <w:ValidateAgainstSchemas></w:ValidateAgainstSchemas>\n <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>\n <w:IgnoreMixedContent>false</w:IgnoreMixedContent>\n <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>\n <w:Compatibility>\n <w:BreakWrappedTables></w:BreakWrappedTables>\n <w:DontGrowAutofit></w:DontGrowAutofit>\n <w:DontAutofitConstrainedTables></w:DontAutofitConstrainedTables>\n <w:DontVertAlignInTxbx></w:DontVertAlignInTxbx>\n </w:Compatibility>\n </w:WordDocument>\n</xml><![endif]--><!--[if gte mso 9]><xml>\n <w:LatentStyles DefLockedState=\"false\" LatentStyleCount=\"276\">\n </w:LatentStyles>\n</xml><![endif]-->\n\n<!--[if gte mso 10]>\n<style>\n /* Style Definitions */\ntable.MsoNormalTable\n\t{mso-style-name:\"Table Normal\";\n\tmso-tstyle-rowband-size:0;\n\tmso-tstyle-colband-size:0;\n\tmso-style-noshow:yes;\n\tmso-style-parent:\"\";\n\tmso-padding-alt:0in 5.4pt 0in 5.4pt;\n\tmso-para-margin:0in;\n\tmso-para-margin-bottom:.0001pt;\n\tmso-pagination:widow-orphan;\n\tfont-size:12.0pt;\n\tfont-family:\"Times New Roman\";\n\tmso-ascii-font-family:Cambria;\n\tmso-ascii-theme-font:minor-latin;\n\tmso-fareast-font-family:\"Times New Roman\";\n\tmso-fareast-theme-font:minor-fareast;\n\tmso-hansi-font-family:Cambria;\n\tmso-hansi-theme-font:minor-latin;}\n</style>\n<![endif]-->\n\n\n\n<!--StartFragment-->\n\n<p class=\"MsoNormal\"><font face=\"Arial\"><span style=\"font-size: 16pt; letter-spacing: -0.01em; line-height: 1.25;\"><a href=\"http://www.chow.com/food-news/156557/hearty-healthy-fall-breakfasts/\">9&nbsp;Hearty and Healthy Fall Breakfasts</a></span></font></p></h3><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\"><span style=\"color: rgb(34, 34, 34); font-family: Arial, Helvetica, sans-serif; font-size: 14px; letter-spacing: normal; line-height: 21px;\">Chilly fall mornings are the perfect time to slow down and enjoy the season’s harvest with a healthy breakfast. Whether you’re after sweet or savory, the flavors of fall offer plenty of possibilities. Here are some ideas to get you started. Try them on their own, or mix and match a few recipes for a seasonal brunch to share with friends.</span><br></p>"
}
},
{
"type": 6
}
]
}
]
},
{
"columns": [
{
"span": 12,
"blocks": [
{
"type": 2,
"value": {
"html": "<h4>Features:</h4>"
}
}
]
}
]
},
{
"columns": [
{
"span": 12,
"blocks": [
{
"type": 3,
"value": {
"type": 1,
"rows": 3,
"columns": 1,
"layout": 4,
"model": "wp_post"
}
},
{
"type": 6
}
]
}
]
},
{
"columns": [
{
"span": 12,
"blocks": [
{
"type": 2,
"value": {
"html": "<h4>Recipes:</h4>"
}
}
]
}
]
},
{
"columns": [
{
"span": 12,
"blocks": [
{
"type": 2
},
{
"type": 3,
"value": {
"type": 1,
"rows": 3,
"columns": 1,
"layout": 4,
"model": "recipe"
}
}
]
}
]
},
{
"columns": [
{
"span": 12,
"blocks": [
{
"type": 2,
"value": {
"html": "<h4>From the Community:</h4>"
}
},
{
"type": 2,
"value": {
"html": "<h4>\n\n\n\n\n\n\n\n</h4><h4>\n\n\n\n\n\n\n\n<p class=\"p1\">\n\n\n\n\n\n\n\n</p></h4><h4><a href=\"http://chowhound.chow.com/topics/993925\">Brand-New Recipe Pages</a></h4><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\">\n\n\n\n\n\n\n\n</p><p class=\"p1\"><span style=\"color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; letter-spacing: normal; line-height: 18px;\">Today we’re releasing a full redesign of our recipe pages on both desktop and mobile. Check out the Recipe hub to dive in:&nbsp;</span><a href=\"http://www.chow.com/recipes/\" target=\"_blank\" style=\"box-sizing: border-box; color: rgb(0, 146, 194); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; letter-spacing: normal; line-height: 18px;\">http://www.chow.com/recipes/</a><br></p><p>\n\n\n\n\n\n\n\n\n</p><p class=\"p1\"><br></p>"
}
},
{
"type": 3,
"value": {
"type": 1,
"rows": 4,
"columns": 1,
"layout": 4,
"model": "discussion"
}
}
]
}
]
}
]
},
"exclude": {
"resources": [
{
"id": "WpPost-156064",
"model": "wp_post",
"title": "11 Ways to Bake with Halloween Candy"
}
]
},
"subjectTemplate": "9 Hearty and Healthy Fall Breakfasts",
"unsubscribeUrlFormat": "https://unsubscribe.boomtrain.com/?email=%s&app=%s&notification=%s&bsin=%s"
},
"method": "POST",
"uri": null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment