Skip to content

jlinn/riot-api-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

riot-api-java

A Java client for the Riot Games API.

Supported API Versions

API Version
champion 1.2
game 1.3
league 2.4
stats 1.3
summoner 1.4
team 2.3

Usage

Maven dependency:

<dependency>
  <groupId>net.joelinn</groupId>
  <artifactId>riot</artifactId>
  <version>0.2.1</version>
</dependency>

Instantiating the client object:

Riot client = new Riot("your-api-key", Region.NA);

Champion calls

// Retrieving all champions
ChampionList champions = client.champion().getChampions();

Summoner calls

// Retrieving a summoner by name
Map<String, Summoner> summoners = client.summoner().getSummoner("SummonerName");
Summoner summoner = summoners.get("SummonerName");

Game calls

// Retrieving a summoner's recent games
RecentGames games = client.game().getRecentGamesBySummoner(summonerId);

League calls

// Retrieving league data by summoner id
List<League> leagues = client.league().getLeaguesBySummoner(summonerId);

Static data calls

// Retrieving items data, including all optionally returned data
ItemList items = client.staticData().getItems(ItemListData.all);

Legal Jibber Jabber

This library isn’t endorsed by Riot Games and doesn’t reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.

About

A Java client for the Riot Games API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages