“Feed” Object
Within any Zephyr context, the feed object contains a number of useful pieces of data about the current data feed being used in a campaign or transactional email. This object is useful for populating dynamic sections of an email based on items such as the feed name.
Here is an example “feed” object:{
"name":"Sports Feed",
"url":"http://feed.sailthru.com/ws/feed?id=58d6ba9c3c8aa9e55a8b4574",
"filter_tags":[
"sports" ],
"filter_out_tags":[
"entertainment" ],
"filter_vars":[
{
"key":"category",
"val":"sports" }
],
"filter_out_vars":[
{
"key":"sponsored",
"val":"true" }
]
}
(Line breaks added for clarity.)
Field | Type | Description |
---|---|---|
name | string | The name of the feed |
url | string | The url of the feed |
filter_tags | list | Any tags being filter for |
filter_out_tags | list | Any tags being filtered out |
filter_vars | list | A key/value pair of any variables being filtered for |
filter_out_vars | list | A key/value pair of any variables being filtered out |
{if feed.name == "Sports Feed"} <!--Sports Header--> {else if feed.name == "Politics Feed"} <!--Politics Header--> {else} <!--Default Header--> {/if}