Click or drag to resize

AccountClientManagementGroupLogin Method

Validates Account Credentials. If the Account Credentials are valid, then a Token is returned, along with the a small set of Account Details.

An Authenticated Token will allow the the Account holder access to Web Service Methods that require Token Authentication.

Remarks
  • Account Status must be Active
Syntax
C#
public ResultOfAuthenticate ManagementGroupLogin(
	ManagementGroupCredentials credentials
)

Parameters

credentials
Type: AccountServiceManagementGroupCredentials

Return Value

Type: ResultOfAuthenticate
Examples
C#
using (var svc = new AccountService.AccountClient())
{
  var request = new AccountService.ManagementGroupCredentials();
  request.AccountName = "AccountName"; // Could be Card Number/Partner Name/Email Address
  request.SecurityCode = "SecurityCode"; // Password;
  request.ManagementGroup = "ManagementGroup"; // ManagementGroup;

  AccountService.ResultOfAuthenticate result = svc.ManagementGroupLogin(request);

  if (result.FaultCode == 0)
  {
    //Login succeeded
    string token = result.Value.Token; //Use token in service calls.
  }
  else
  {
    //Login failed
    throw new Exception(result.FaultDescription);
  }
}
See Also