public TwitterAuthenticator(string clientId, string clientSecret, ITwitterAuthenticationDelegate authenticationDelegate) { _authenticationDelegate = authenticationDelegate; _auth = new OAuth1Authenticator(clientId, clientSecret, new Uri(RequestTokenUrl), new Uri(AuthorizeUrl), new Uri(AccessTokenUrl), new Uri(RedirectUrl), null, IsUsingNativeUI); _auth.Completed += OnAuthenticationCompleted; _auth.Error += OnAuthenticationFailed; }
public TwitterAuthentificator(string consumerKey, string consumerSecret, string scope, ITwitterAuthenticationDelegate authenticationDelegate) { _authenticationDelegate = authenticationDelegate; _auth = new OAuth1Authenticator( consumerKey: consumerKey, consumerSecret: consumerSecret, requestTokenUrl: new Uri(RequestTokenUrl), authorizeUrl: new Uri(AuthorizeUrl), accessTokenUrl: new Uri(AccessTokenUrl), callbackUrl: new Uri(CallbackUrl)); _auth.Completed += OnAuthenticationCompleted; _auth.Error += OnAuthenticationFailed; _auth.AllowCancel = true; }