void AuthenticateAsync() { authAgent.GetAuthCode(); if (!authAgent.getAuthCodeSuccess) { throw new TimeoutException("Timeout exceeded waiting for authorization code."); } authAgent.GetAuthToken().Wait(); authAgent.restApiError.Test(); authAgent.GetUserInfo().Wait(); authAgent.restApiError.Test(); }
void ConfigureAuthentification() { authAgent.GetUserInfo().Wait(); authAgent.restApiError.Test(); }