Giter Club home page Giter Club logo

willroscoe / brontosharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michaelrandrup/brontosharp

0.0 1.0 0.0 195 KB

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

License: Apache License 2.0

C# 100.00%

brontosharp's Introduction

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 = "[email protected]",
    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);
}

brontosharp's People

Contributors

michaelrandrup avatar willroscoe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.