//Gets the information from the web.config file public ChallongeApi(string username, string apikey) { Result = new Result(); //Could have done this in C#6, but since this is the only property, I decided //not to break compatibility Username = username; Key = apikey; // Username = WebConfig.GetAppSetting("challongeUserName"); // Key = WebConfig.GetAppSetting("challongeKey"); Url = "https://" + Username + ":" + Key + "@api.challonge.com/v1/"; }
//Gets the information from the web.config file public ChallongeApi(string username, string apikey) { Result = new Result(); //Could have done this in C#6, but since this is the only property, I decided //not to break compatibility //Username = username; //Key = apikey; Username = "******"; Key = "ezntUopEWcSfXJuGv3VqyrKLyPcC2LlmNJYT7Ane"; // Username = WebConfig.GetAppSetting("challongeUserName"); // Key = WebConfig.GetAppSetting("challongeKey"); Url = "https://" + Username + ":" + Key + "@api.challonge.com/v1/"; }