AccountClientManagementGroupLoginActiveMembershipOnly 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.
public ResultOfAuthenticate ManagementGroupLoginActiveMembershipOnly( ManagementGroupCredentials credentials )
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.ManagementGroupLoginActiveMembershipOnly(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); } }