public void Initialize(string accessToken, string accessTokenSecret, string username, long userId) { //for OAuth HttpOAuthApiProxy con = new HttpOAuthApiProxy(); if (tk != accessToken || tks != accessTokenSecret || un != username || connectionType != AuthMethod.OAuth) { // 以前の認証状態よりひとつでも変化があったらhttpヘッダより読み取ったカウントは初期化 tk = accessToken; tks = accessTokenSecret; un = username; } con.Initialize(ApplicationSettings.TwitterConsumerKey, ApplicationSettings.TwitterConsumerSecret, accessToken, accessTokenSecret, username, userId, "screen_name", "user_id"); httpCon = con; connectionType = AuthMethod.OAuth; requestToken = ""; }