API Call: preview

Overview

Get a preview of a template, blast or repeating blast.

Specification

Base URL

https://api.sailthru.com/preview

POST mode

Required Parameters

Specify one of the following parameters:

Parameter Description Example
template The name of the template to preview my-template
blast_id The id of the blast to preview 123456
blast_repeat_id The id of the repeating blast to preview 4d9553239c409dff34000026
content_html A block of text to parse and preview

AND one of the following parameters:

Parameter Description Example
email A user email address to generate dynamic content for, which will return content_html equal to the email HTML body support@sailthru.com
send_email An email address to send the preview (Data feed content will not populate if a template is referenced, use a blast_id instead.) support@sailthru.com
Optional Parameters
Parameter Description Example
data_feed_url URL of the data feed to populate a template or content_html request http://www.example.com/example.xml

If you'd like to update the object (templates, blasts, repeating blasts) you wish to preview without saving it, you can pass any of the parameters associated with that object. To see a list of available options, please refer to the optional parameters of the blast and template calls, respectively.

 
/var/www/docs.sailthru.com/htdocs/data/pages/api/preview.txt · Last modified: 2011/12/07 10:46 by David Studinski
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki