Hi everyone
I'm trying to get the name of a champion from the id. Here's my code
public String getPlayedChampion(Summoner player) {
try {
CurrentGameInfo game = api.getActiveGameBySummoner(Platform.EUW, player.getId());
CurrentGameParticipant participant = game.getParticipantByParticipantId(player.getId());
Champion champ = api.getDataChampion(Platform.EUW, participant.getChampionId());
return champ.getName();
} catch (RiotApiException e) {
log.warn("Error getPlayedChampion: {}", e.getMessage());
return null;
}
}
but the code always throw an error (403 - Forbidden).
I can't find the endPoint that the library try to call in the Riot Dev Site
How can i get the name of a champion?
Is there another java method/riot endpoint to get the name?
Thank you π
Hi everyone
I'm trying to get the name of a champion from the id. Here's my code
but the code always throw an error (403 - Forbidden).
I can't find the endPoint that the library try to call in the Riot Dev Site
How can i get the name of a champion?
Is there another java method/riot endpoint to get the name?
Thank you π