Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.
samkuehn edited this page Sep 6, 2012 · 1 revision

Usage

Refer to the integration tests for further usage examples https://github.com/samkuehn/candywrapper/blob/master/src/CandyWrapperTests/IntegrationTests.cs

Usage Recomendation

The sugarsoap login() and logout() meathods are called in the constructor (login) and during disposal (logout) using the IDisposable interface. It should be called in a using block so the session is properly cleaned up.

using (var cw = new CandyWrapper("url", "username", "password"))
{
  var entry = cw.GetEntry(SugarModules.Accounts, "SomeAccountIdGuid");
}
Clone this wiki locally