private static void ChangeApiAccessHttpsToHttp(TwitterService twitter) { var info = twitter.GetType().GetField("_oauth", BindingFlags.Instance | BindingFlags.NonPublic); if (info != null) { var _oauth = info.GetValue(twitter) as Hammock.RestClient; if (_oauth != null) { _oauth.Authority = RestApiAuthority; } } }