Backpack API

Below is the documentation for the Backpack API.

Namespaces needed to run the api
using DotNet37Signals.Client.Backpack;
using DotNet37Signals.Client.Backpack.Contracts;
using DotNet37Signals.Client.Backpack.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 BackpackClient(credentials);

Backpack Services


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

Last edited Dec 27, 2011 at 8:11 PM by spardo, version 1


No comments yet.