コード例 #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 ConfigureAuthentification()
 {
     authAgent.GetUserInfo().Wait();
     authAgent.restApiError.Test();
 }