Campfire API

Below is the documentation for the Campfire API.

Namespaces needed to run the api
using DotNet37Signals.Client.Campfire;
using DotNet37Signals.Client.Campfire.Contracts;
using DotNet37Signals.Client.Campfire.Models;

Extantiate the client class
var username = ConfigurationManager.AppSettings["username"];
var password = ConfigurationManager.AppSettings["password"];
var company = ConfigurationManager.AppSettings["company"];
var keepAliveEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["keepAliveEnabled"]);

var credentials = new Credentials(username, password, company, keepAliveEnabled);
var client = new CampfireClient(credentials);

Campfire Services


// GET /account.xml
var account = client.GetContract<IAccountContract>().Get();

Last edited Dec 27, 2011 at 8:10 PM by spardo, version 3


No comments yet.