예제 #1
0
        public async ValueTask AuthenticateWithPinAsync(OAuthTokens requestTokens, string pin)
        {
            var access = await twitterApi.AuthenticateWithPin(requestTokens, pin).ConfigureAwait(true);

            settings.AccessToken       = access.OAuthToken;
            settings.AccessTokenSecret = access.OAuthSecret;
            settings.ScreenName        = access.ScreenName;
            settings.Save();
        }
예제 #2
0
 public ValueTask <OAuthTokens> AuthenticateWithPinAsync(OAuthTokens requestTokens, string pin) => twitterApi.AuthenticateWithPin(requestTokens, pin);