Support Center

Integration API

It’s easy to integrate your module, application, or web service with Live Campaign. Your .NET based app can automatically create campaigns and send out emails in 3 basic steps.

Step 1

Implement the ILiveCampaignAction interface in your app.

Step 2

Create a new campaign to be used with your app.

Step 3

Finally, send campaign from within your app.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class EmailCampaign : Mandeeps.DNN.Modules.LiveCampaign.Components.ILiveCampaignAction
{
public string DataTextField
{
get { return "When a new blog post is published"; }
}
public string DataValueField
{
get { return "LiveBlog"; }
}
public  LiveCampaign.Data.Campaign GetActionCampaign(int CampaignId)
{
return Mandeeps.DNN.Modules.LiveCampaign.Components.LiveCampaignController.CampaignController.GetActionCampaign(CampaignId);
}
public  void SendCampaign(LiveCampaign.Data.Campaign Campaign)
{
Mandeeps.DNN.Modules.LiveCampaign.Components.LiveCampaignController.CampaignController.Add(Campaign);
}
}

 

 

1) By implementing the above ILiveCampaignAction interface we can see our action in live campaign

 

 

Server Usage

2) Get all campaigns of “LiveBlog” type

Server Usage


Server Usage

3) Sample code for using Mandeeps.DNN.Modules.LiveCampaign.Components.ILiveCampaignAction interface

1
2
3
4
5
6
7
EmailCampaign ec = new EmailCampaign();
LiveCampaign.Data.Campaign cmpgn = ec.GetActionCampaign(CampaignId);
if (cmpgn != null)
{
cmpgn = modifyCampaignObject(cmpgn);
ec.SendCampaign(cmpgn);
}

Glad we could be helpful. Thanks for the feedback.

Sorry we couldn't be helpful. Your feedback will help us improve this article.

How helpful was this page?

  
Updated on Wed, 16 May 2018 by Khushi Singh