« Back to Documentation OverviewcampaignContent – v1.2
campaignContent(string apikey, string cid, bool for_archive)
Get the content (both html and text) for a campaign either as it would appear in the campaign archive or as the raw, original content
| Parameters | | apikey | a valid API Key for your user account. Get by visiting your API dashboard |
| cid | the campaign id to get content for (can be gathered using campaigns()) |
| for_archive | optional - controls whether we return the Archive version (true) or the Raw version (false), defaults to true |
| Returns | | struct |
Struct containing all content for the campaign (see Returned Fields for details |
| Returned Fields | string | html | The HTML content used for the campgain with merge tags intact | string | text | The Text content used for the campgain with merge tags intact |