-
Notifications
You must be signed in to change notification settings - Fork 2
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.
public WSResultOfWSCompanyInformation GetCompanyInformation(string token)
Parameter | Type | Description |
---|---|---|
token | String | The session token retrieved during authentication. |
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.");
}