Click or drag to resize

AccountClientManagementGroupAuthenticate Method

Validates the Token submitted, and returns a small set of Account Details.

A new Token is issued, which is to be used for calling Web Service Methods that require Token Authentication.

Remarks
  • The Token used to call this Web Service Method will be expired. Ensure the new Token issued is used for calling Web Service Methods that require Token Authentication.
  • The new Token issued has an expiry of a configurable value, and must be used within this timeframe to be valid
Syntax
C#
public ResultOfAuthenticate ManagementGroupAuthenticate(
	ManagementGroupToken token
)

Parameters

token
Type: AccountServiceManagementGroupToken

Return Value

Type: ResultOfAuthenticate
Examples
C#
using (var svc = new AccountService.AccountClient())
{
  var request = new AccountService.ManagementGroupToken();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

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

  if (result.FaultCode == 0)
  {
    //Request succeeded
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also