Exemplo n.º 1
0
        private void run(API_Request API)
        {
            string reqUrl = API.getURL();

            WebClient Downloader = new WebClient();

            string json2 = Downloader.DownloadString(reqUrl);
            dynamic JSON = JsonConvert.DeserializeObject(json2);

            ///////
            //CURRENTLY HERE - PARSING WORKS. TODO: GET ID, MAKE CALL FOR MASTERIES, SEARCH FOR CURRENT.
            ///////
            //Json[summonername][fieldyouwant].toString
            ReturnTB.AppendText(JSON[API.getSumName()]["summonerLevel"].ToString());
        }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     API = new API_Request();
 }