Detected 2 occurrence(s) of ‘(api|private)[-_]key[ "']*=[ ="']*\w+': Slurper() idSON = slurper.parse(getSummonerIdURL) summonerId = idSON.get(summonerName.toLowerCase()).id slurper2 = new groovy.json.JsonSlurper() getRnkdStatsURL = new URL("https://euw.api.pvp.net/api/lol/euw/v1.3/stats/by-summoner/${summonerId}/ranked?api_key=GEHEIM") rankedSON = slurper2.parse(getRnkdStatsURL) championId=4 //TF hat id 4 - müsste man sich n mapping machen über die riot api tfStats = null rankedSON.champions.each{it -> if(it.id == championId){ println "Found TF"; tfStats = it.stats; […]
↧