ActiveCampaignNet is a .NET class library that provides an easy-to-use interface for the http://www.activecampaign.com/ web api
ActiveCampaignClient client = new ActiveCampaignClient("<You-api-key>", "https://some-url.api-us1.com");
var client = new ActiveCampaignClient("<You-api-key>", "https://some-url.api-us1.com");
var result = client.Api("contact_add", new Dictionary<string, string>
{
{"email", "[email protected]"},
{"first_name", "mathieu"},
{"last_name", "kempe"},
{"p[1]", "1"}
});
if (result.IsSuccessful)
{
Console.WriteLine(result.Message);
}
var result = client.Api("list_list", new Dictionary<string, string>
{
{"ids", "all"}
});
if (result.IsSuccessful)
{
Console.WriteLine(result.Data);
}