コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }