/// <summary> /// 認証クエリを取得します。 /// </summary> /// <param name="method"></param> /// <param name="postData"></param> /// <param name="selector"></param> /// <param name="extension"></param> /// <param name="options"></param> /// <returns></returns> public static string GetQuery(oAuthTwitter.Method method, ref string postData, ApiSelector selector, Format extension, params string[] options) { string query = GetQuery(selector, extension, options); if (ConfigurationViewModel.OAuth != null) { ConfigurationViewModel.OAuth.ConvertToOAuthUrl(method, ref query, ref postData); } return query; }
static ConfigurationViewModel() { OAuth = new oAuthTwitter(); OAuth.ConsumerKey = Properties.Settings.Default.ComsumerKey; OAuth.ConsumerSecret = Properties.Settings.Default.ComsumerSecret; OAuth.Token = Properties.Settings.Default.AccessToken; OAuth.TokenSecret = Properties.Settings.Default.AccessTokenSecret; OAuth.ScreenName = Properties.Settings.Default.ScreenName; OAuth.UserId = Properties.Settings.Default.UserId; }