Skip to content

Cobas91/RiotAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java RiotAPI Library

You can use this Library to fetch Data from the official RiotApi.

Riot Games GitHub Release

Supported Games

  • League of Legends
  • Valorant (TBD)
  • Teamfight Tactics (TBD)

General Usage

Add the repository to your project

<project>
  ...
    <repositories>
        <repository>
            <id>github</id>
            <name>GitHub Packages</name>
            <url>https://maven.pkg.github.com/cobas91/RiotApi</url>
        </repository>     
    </repositories>
</project>

Add the dependency to your project, replace {VERSION} with the current release

<dependencies>
    <dependency>
        <groupId>io.github.cobas91</groupId>
        <artifactId>riotapi</artifactId>
        <version>{VERSION}</version>
    </dependency>  
</dependencies>

League of Legends

//Get your API Token from the Official RiotApi Website. You have to register an Application to get one.
RiotSettings settings = RiotSettings.builder().language(Language.de_DE).region(RiotRegion.EUW1).apiToken("TOKEN HERE").build();

LeagueOfLegendsClient client = LeagueOfLegendsClient.builder(settings).withChampionDownloader().withSummonerDownloader().withMatchDownloader().build();
List<Champion> allChampions = client.getChampionDownloader().getAllChampions();

List<Item> allItems = client.getItemDownloader().getAllItems();

JavaDocs

Valorant (TBD)

(TBD)

Teamfight Tactics (TBD)

(TBD)