mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
New endpoint of Riot API
This commit is contained in:
parent
fa801db48c
commit
2533c73660
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ const getAccountInfos = function (res) {
|
||||||
|
|
||||||
// Get data of rankeds stats
|
// Get data of rankeds stats
|
||||||
const getRanked = function (res) {
|
const getRanked = function (res) {
|
||||||
request(`https://${data.region}.api.riotgames.com/lol/league/v4/positions/by-summoner/${data.summonerID}?api_key=${data.key}`, function (error, response, body) {
|
request(`https://${data.region}.api.riotgames.com/lol/league/v4/entries/by-summoner/${data.summonerID}?api_key=${data.key}`, function (error, response, body) {
|
||||||
if (!error && response.statusCode == 200) {
|
if (!error && response.statusCode == 200) {
|
||||||
let JSONBody = JSON.parse(body);
|
let JSONBody = JSON.parse(body);
|
||||||
if (JSONBody.length > 0) {
|
if (JSONBody.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue