OpenTween.Twitter.VerifyCredentials C# (CSharp) Method

VerifyCredentials() private method

private VerifyCredentials ( ) : void
return void
        public void VerifyCredentials()
        {
            try
            {
                this.VerifyCredentialsAsync().Wait();
            }
            catch (AggregateException ex) when (ex.InnerException is WebApiException)
            {
                throw new WebApiException(ex.InnerException.Message, ex);
            }
        }

Usage Example

Esempio n. 1
0
        private void RefreshAccount(UserAccount account)
        {
            using (var t = new Twitter(account))
            {
                t.VerifyCredentials();
                account.UserId = t.UserId;
                account.Username = t.Username;
                account.ProfileImageUrl = t.ProfileImageUrl;
            }

            UserAccountsCheckedListBox.Refresh();
        }