Skip to content

mathieukempe/ActiveCampaignNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveCampaignNet

ActiveCampaignNet is a .NET class library that provides an easy-to-use interface for the http://www.activecampaign.com/ web api

Examples

Initialization of the client

ActiveCampaignClient client = new ActiveCampaignClient("<You-api-key>", "https://some-url.api-us1.com");

Adding a contact

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);
 }

Lists List

var result = client.Api("list_list", new Dictionary<string, string>
{
    {"ids", "all"}
});

if (result.IsSuccessful)
{
    Console.WriteLine(result.Data);
}

About

A client for the ActiveCampaign API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages