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 AuthenticateAsync()
        {
            authAgent.GetAuthCode();
            var AuthCodeSerialized = JsonConvert.SerializeObject(authAgent.authCode);

            if (!authAgent.getAuthCodeSuccess)
            {
                throw new TimeoutException("Timeout exceeded waiting for authorization code.");
            }

            authAgent.GetAuthToken().Wait();
            authAgent.restApiError.Test();

            authAgent.GetUserInfo().Wait();
            authAgent.restApiError.Test();
        }