riot-api-java

A Java client library for Riot's API

License

License

Categories

Categories

Net
GroupId

GroupId

net.joelinn
ArtifactId

ArtifactId

riot
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

riot-api-java
A Java client library for Riot's API
Project URL

Project URL

http://github.com/jlinn/riot-api-java
Source Code Management

Source Code Management

http://github.com/jlinn/riot-api-java

Download riot

How to add to project

<!-- https://jarcasting.com/artifacts/net.joelinn/riot/ -->
<dependency>
    <groupId>net.joelinn</groupId>
    <artifactId>riot</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/net.joelinn/riot/
implementation 'net.joelinn:riot:0.2.1'
// https://jarcasting.com/artifacts/net.joelinn/riot/
implementation ("net.joelinn:riot:0.2.1")
'net.joelinn:riot:jar:0.2.1'
<dependency org="net.joelinn" name="riot" rev="0.2.1">
  <artifact name="riot" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.joelinn', module='riot', version='0.2.1')
)
libraryDependencies += "net.joelinn" % "riot" % "0.2.1"
[net.joelinn/riot "0.2.1"]

Dependencies

compile (3)

Group / Artifact Type Version
com.google.guava : guava-base jar r03
org.codehaus.jackson : jackson-jaxrs jar 1.9.13
com.sun.jersey : jersey-client jar 1.17.1

test (2)

Group / Artifact Type Version
junit : junit jar 4.11
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

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.

Versions

Version
0.2.1
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2