Skip to content

michaelrandrup/BrontoSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrontoSharp

C# based SDK for the Bronto SOAP API, created and maintained independently from the Bronto Professional Services team. Questions for the API may be asked in the official Dev Q&A Forum (http://dev.bronto.com/questions) or see the official documentation at http://dev.bronto.com/api/v4

Documentation

Please see the BrontoSharp Wiki for information on how to use the Services.

Getting started

You will need access to your API Token in your Bronto account in order to work with the API.

// 1. Add your API token below (go to Home > Settings > Data Exchange in Bronto to see your API Key
string apiToken = "<my API key>";

// 2. Create your login session by logging in
Bronto.API.LoginSession login = Bronto.API.LoginSession.Create(apiToken);

// 3. Reference the Contacts service and add a contact to Bronto
Contacts contactsApi = new Contacts(login);

BrontoService.contactObject contact = new BrontoService.contactObject()
{
    email = "mra@applications.dk",
    status = Bronto.API.ContactStatus.Onboarding
};

Bronto.API.BrontoResult result = contactsApi.Add(contact);
if (result.HasErrors)
{
    result.ErrorIndicies.ToList().ForEach(id =>
    {
        Console.WriteLine("Error code {0}: {1}", result.Items[id].ErrorCode, result.Items[id].ErrorString);
    });
}
else
{
    Console.WriteLine("A contact with the Id '{0}' was created", result.Items.First().Id);
}

About

C# based SDK for the Bronto SOAP API, created and maintained independently from the Bronto Professional Services team. Questions for the API may be asked in the official Dev Q&A Forum (http://dev.bronto.com/questions) or see the official documentation at http://dev.bronto.com/api/v4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages