Click or drag to resize

AccountClientManagementGroupValidate Method

Validates the Token submitted, and returns the Account RSN linked to the Token.

Syntax
C#
public ResultOfAuthenticate ManagementGroupValidate(
	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"; // Token
  request.ManagementGroup = "Management group"; // ManagementGroup;

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

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