public void ClaimToken() { var syncClient = new WebClient(); var content = syncClient.DownloadString(Properties.Settings.Default.ICMenterTokenURI); this.token = JsonConvert.DeserializeObject<ICMeterAccessTokenTemplate.RootObject>(content); //Debuging and DEV if (Properties.Settings.Default.Debug) { Console.WriteLine("Token Claimed!"); Console.ReadKey(); } }
public void ClaimToken() { var syncClient = new WebClient(); var content = syncClient.DownloadString(Properties.Settings.Default.ICMenterTokenURI); this.token = JsonConvert.DeserializeObject <ICMeterAccessTokenTemplate.RootObject>(content); //Debuging and DEV if (Properties.Settings.Default.Debug) { Console.WriteLine("Token Claimed!"); Console.ReadKey(); } }