Skip to content

Instantly share code, notes, and snippets.

@ashaegupta
Last active December 24, 2015 16:18
Show Gist options
  • Save ashaegupta/6826580 to your computer and use it in GitHub Desktop.
Save ashaegupta/6826580 to your computer and use it in GitHub Desktop.
Delivery data. *new properties.
delivery: {
id: 1
recipient: "michael@customer.cio",
subject: "Michael, let me help you get started",
drafted: TIMESTAMP, // yesterday
sent: TIMESTAMP, // 3 hrs ago
pending: TIMESTAMP, // 4 hours ago
failed: null,
bounced: null,
dropped: null,
opened: null,
clicked: null,
converted: null,
spammed: null
# relationships:
*email_id: 1,
*campaign_id: 1,
*layout_id: 1,
*customer_id: 1,
*errors: ["first_name", "company_nme"],
*from: "colin@customer.io",
*mergedHTML: "<html><head></head><body><table cellpadding='0' cellspacing='0' border='0' align='left' width='500' style='line-height:20px; font-size: 12px; font-family: arial'><tbody><tr><td>Hey Pranav,<br><br>I'm Colin, CEO of Customer.io. I wanted to reach out to see if you need any help getting started.<br><br>Cheers,<br>Colin<br></td></tr></tbody></table></body></html>",
*dataMerged: [
{ value: 'Pranav' , label: 'first_name' },
{ value: 'Lyst' , label: 'company_name' }
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment