Hello, thx again for this class!
I would like to know if you have plans to add support to league2.5 api. I would like to retrieve summoner ranks and other info.
Thank you!
Edit: I ended up extending your class, it works, but Im not sure it looks as good as yours!
public function getsummonerleague($summoner)
{
// init array
$summonerdata = array();
// api version
$apiv = '2.5';
// Get the data
$summonerdata = json_decode(
$this->get_url_contents(
$this->geturl('league/by-summoner/'.$summoner.'/entry', $apiv)
)
);
// return data
return $summonerdata;
}
This works for me since I only wanted data from one selected summoner... but it could be extended to return data from different method in the same API.
Hello, thx again for this class! I would like to know if you have plans to add support to league2.5 api. I would like to retrieve summoner ranks and other info.
Thank you!
Edit: I ended up extending your class, it works, but Im not sure it looks as good as yours!
and
This will return something similar to:
This works for me since I only wanted data from one selected summoner... but it could be extended to return data from different method in the same API.