« Back to Documentation Overview

campaignContent – v1.1

 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

Section
Campaign Related
Parameters
apikey a valid API Key for your user account. Get by calling 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
stringhtmlThe HTML content used for the campaign with merge tags intact
stringtextThe Text content used for the campaign with merge tags intact