private void AuthorizeCommand() { MyWebClient client = new MyWebClient(); OAuthHelper oauth = new OAuthHelper(); oauth.Token = OAuthToken; oauth.Verifier = Verifier; oauth.TokenSecret = OAuthTokenSecret; oauth.CreateSignature("https://api.twitter.com/oauth/access_token", "GET"); string auth = oauth.AuthenticationHeader; client.SetHeader("Authorization", auth); client.DoPostCompleted += new EventHandler <DoPostCompletedEventArgs>(AuthCompleted); client.DoGetAsync(new Uri("https://api.twitter.com/oauth/access_token", UriKind.Absolute)); }
private void AuthorizeCommand() { MyWebClient client = new MyWebClient(); OAuthHelper oauth = new OAuthHelper(); oauth.Token = OAuthToken; oauth.Verifier = Verifier; oauth.TokenSecret = OAuthTokenSecret; oauth.CreateSignature("https://api.twitter.com/oauth/access_token", "GET"); string auth = oauth.AuthenticationHeader; client.SetHeader("Authorization", auth); client.DoPostCompleted += new EventHandler<DoPostCompletedEventArgs>(AuthCompleted); client.DoGetAsync(new Uri("https://api.twitter.com/oauth/access_token", UriKind.Absolute)); }