Get Dynamic Content Block Preview
This method displays a preview of a Dynamic Content Block.
This is a GET method.
REST WADL
https://atmp-pub-api-www3.actito.com/apitransactional/services/rest?_wadl&_type=xml
REST URL
https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/banner/preview/{token}/{id}
| Input parameters
Required parameters | Description | Output parameters | Description |
| ----------------------------------------------------------------------------- | ----------- | ----------------- | ----------- |
| token | The connection token | return | formattedBanner - The formatted preview of the Dynamic Content Block |
| id | The ID of the Dynamic Content Block to preview | | |
Error messages
- You must fill in the token parameter
- You must fill in the id parameter.
- The content must begin with [EMV TEXTPART] OR [EMV HTMLPART].
- No banner found !!
- The part parameter is not the same as HTML or TEXT.
- An error occured on the server
REST Example
Input
https://atmp-pub-api-www3.actito.com/apitransactional/services/rest/banner/preview/{token}/150
Output
<response responseStatus="success">
<result xsi:type="xs:string">
<html>
<body>
<table align="center" bgcolor="white" border="0" cellpadding="0" cellspacing="0" width="625">
<tr>
<td rowspan="3" width="15">
</td>
<td align="center" rowspan="3" valign="middle" width="395">
<a rel="nofollow">
<img alt="Poste Midnight Lace" height="173" src="http://webr.emv2.com/demo_milano/120412_acme/highheel_2.jpg" width="161">
</a>
<img alt="Poste Midnight Lace" height="173" src="http://webr.emv2.com/demo_milano/120412_acme/flats_2.jpg" width="161">
</td>
<td height="246" valign="middle">
<span style="font-size: 9.0pt;font-family: Helvetica , Arial , sans-serif;color: rgb(0,0,0);font-weight: 200;">http://www.smarfocus.com A welcome addition to the Poste range, the Midnight lace carries on the tradition of classic styling with a subtle twist.
<br>
<br>
<br>
</span>
</td>
<td rowspan="3" width="15">
</td>
</tr>
<tr>
<td align="right" bgcolor="#860038" height="18" valign="bottom">
<span style="font-size: 10.0pt;font-family: Helvetica , Arial , sans-serif;text-align: right;color: black;font-weight: 200;">
<a rel="nofollow" style="text-decoration: none;font-weight: bold;color: white;text-align: right;padding-right: 5.0px;">
<strong>SHOP ALL GIRLS SHOES</strong>
</a>
</span>
</td>
</tr>
</table>
</body>
</html>
</result>
</response>