Export API

Mar 13, 2012 at 3:48 PM

Hi, any plans to implement support for campaignSubscriberActivity in the Export API?

Coordinator
Mar 13, 2012 at 9:01 PM

Sure

Mar 16, 2012 at 12:00 PM

When might this be, I'm really after some simple c# code to dump all subscriber activity for a specified campaign

Coordinator
Mar 18, 2012 at 4:35 PM
Edited Mar 19, 2012 at 6:24 AM

Added :) The method returns dictionary of emails * SubscriberAction array.

Example (C#):

 

using MailChimp;
using MailChimp.Types;

/*----------------------------------------------*/

var api = new ExportApi(<key>, true);

try {
    var result = api.CampaignSubscriberActivity(<campaignID>);
}
catch (MCExeption ex) {
    // handle mailchimp exception
}
catch (Exception ex) {
    // handle general exception
}
Mar 19, 2012 at 8:26 AM

Thanks Denis, just what I was after!