Skip to content

GetCompanyInformation

devaiq edited this page Oct 19, 2016 · 1 revision

The GetCompanyInformation function retrieves information on the company from which the integration has been authorized.

Declaration

C#

public WSResultOfWSCompanyInformation GetCompanyInformation(string token)

Parameter List

Parameter Type Description
token String The session token retrieved during authentication.

Example

C#

Integration ws = new Integration();

String auth = ws.Login(entityID, partnerKey, userKey);

if (auth != null)
{
  var info = ws.GetCompanyInformation(auth);
  Assert.AreEqual(OperationStatus.Success, info.Status);
  Assert.IsNotNull(info.Result);

  Console.WriteLine("The company " + info.Result.CompanyName + " uses " + info.Result.BaseCurrencyCode + " as its base currency.");
}

See Also

Clone this wiki locally