public void SetUp(RawlerBase rawler) { if (string.IsNullOrEmpty(this.ConsumerKey) || string.IsNullOrEmpty(this.ConsumerSecret)) { if (KeyValueStore.ContainsKey(rawler, "ConsumerKey", "ConsumerSecret")) { this.ConsumerKey = KeyValueStore.GetValueByKey(rawler, "ConsumerKey"); this.ConsumerSecret = KeyValueStore.GetValueByKey(rawler, "ConsumerSecret"); ReportManage.Report(rawler, "KeyValueStoreからのAPI Keyを使います", true, true); } else if (string.IsNullOrEmpty(SetTwitterApiKeys.consumerKey) || string.IsNullOrEmpty(SetTwitterApiKeys.consumerSecret)) { this.ConsumerKey = "gHVupgapEXlTZdu7rf3oOg"; this.ConsumerSecret = "YOicLtW8utx3NJyy88wtzq8QN3ilXeQoEGCPIJNzo"; ReportManage.Report(rawler, "RawlerのAPI Keyを使います", true, true); } else { this.ConsumerKey = SetTwitterApiKeys.consumerKey; this.ConsumerSecret = SetTwitterApiKeys.consumerSecret; } } }