MikaelDui.RiotGames.Client 12.2.1.267-features.integration-tests

Suggested Alternatives

Camille.RiotApi

Additional Details

I've managed to get permabanned so I've ceased development on my Riot-related projects.

This is a prerelease version of MikaelDui.RiotGames.Client.
This package has a SemVer 2.0.0 package version: 12.2.1.267-features.integration-tests+7509531.
There is a newer version of this package available.
See the version list below for details.
dotnet add package MikaelDui.RiotGames.Client --version 12.2.1.267-features.integration-tests                
NuGet\Install-Package MikaelDui.RiotGames.Client -Version 12.2.1.267-features.integration-tests                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MikaelDui.RiotGames.Client" Version="12.2.1.267-features.integration-tests" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MikaelDui.RiotGames.Client --version 12.2.1.267-features.integration-tests                
#r "nuget: MikaelDui.RiotGames.Client, 12.2.1.267-features.integration-tests"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MikaelDui.RiotGames.Client as a Cake Addin
#addin nuget:?package=MikaelDui.RiotGames.Client&version=12.2.1.267-features.integration-tests&prerelease

// Install MikaelDui.RiotGames.Client as a Cake Tool
#tool nuget:?package=MikaelDui.RiotGames.Client&version=12.2.1.267-features.integration-tests&prerelease                

Riot Games .NET Client (unofficial)

.NET CodeQL

image

An unofficial .NET Client for Riot Games and their games League of Legends, Legends of Runeterra, Teamfight Tactics and Valorant.

It features a purpose-built Open API client generator and is written with Vanilla C#.

There are auto-generated overloads so that you can pass a CLR object as parameter to the clients.

Download

You can find the latest releases here on GitHub and on NuGet.

To install the latest version of the package, type the following in the package manager console:

Install-Package MikaelDui.RiotGames.Client
    

Or use the .NET CLI reference the latest stable and stay up-to-date:

dotnet add package MikaelDui.RiotGames.Client --version *

You can also use a PackageReference to stay up-to-date with the latest stable build:

<PackageReference Include="MikaelDui.RiotGames.Client" Version="*" />

Examples

Getting League of Legends masteries

using RiotGames.LeagueOfLegends;
using LeagueOfLegends client = new("MY-SECRET-RIOT-TOKEN", Server.NA);

var summoner = await client.GetSummonerByNameAsync("Some summoner name");
var masteries = await client.GetMasteriesAsync(summoner);
foreach(var mastery in masteries)
    Console.WriteLine($"Champion #{mastery.ChampionId}: {mastery.championPoints} points");

Getting Legends of Runeterra leadersboard

using RiotGames.LegendsOfRuneterra;
using LegendsOfRuneterraClient client = new("ABCD-ABCD-ABCD-ABCD", RegionRoute.AMERICAS);

var leaderboards = await client.GetRankedLeaderboardsAsync();
foreach(var player in leaderboards.Players)
    Console.WriteLine($"Player #{player.Name}: {player.Lp} LP");

Getting Teamfight Tactics league entires

using RiotGames.TeamfightTactics;
using TeamfightTacticsClient client = new("ABCD-ABCD-ABCD-ABCD", PlatformRoute.NA1);

var leagueEntries = await client.GetLeagueEntriesAsync("some-summoner-ID");
foreach(var entry in leagueEntries)
    Console.WriteLine($"Player #{entry.SummonerName}: {player.LeaguePoints} LP");

Getting a Valorant match

using RiotGames.Valorant;
using ValorantClient client = new("ABCD-ABCD-ABCD-ABCD", ValPlatformRoute.EU);

var match = await client.GetMatchAsync("some-match-ID");
foreach(var player in match.Players)
    Console.WriteLine($"Player #{player.Title} played champion #{player.ChampionId}");

Doing multi-game stuff

Using the RiotGamesClient class gives you easy access to multiple game clients at once.

using RiotGames;
using RiotGamesClient client = new("ABCD-ABCD-ABCD-ABCD", PlatformRoute.NA1, ValPlatformRoute.NA);

var lolSummoner = await client.LeagueOfLegends.GetSummonerByNameAsync("some-summoner-name");
var lolMasteries = await client.LeagueOfLegends.GetMasteriesAsync(summoner);
foreach(var mastery in lolMasteries)
    Console.WriteLine($"Champion #{mastery.ChampionId}: {mastery.championPoints} points");

var lorLeaderboards = await client.LegendsOfRuneterra.GetRankedLeaderboardsAsync();
foreach(var player in lorLeaderboards.Players)
    Console.WriteLine($"Player #{player.Name}: {player.Lp} LP");

Getting the current League of Legends champ select

You can use the LeagueClient to communicate directly with the League Client (aka LCU).

using RiotGames.LeagueOfLegends.LeagueClient;
using LeagueClient.LeagueOfLegendsClient client = new();

var session = await client.ChampSelect.GetSessionAsync();
foreach(var teamMember in session.MyTeam)
{
    var summoner = await client.Summoners.GetSummonerAsync(teamMember);
    Console.WriteLine($"Team member: {summoner.DisplayName}");
}

Generated Code

The generated code looks like this:

image

Sub-packages

The client includes these sub-packages:

Notice from Riot Games

Riot Games .NET Client (unofficial) 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 Riot Games properties. Riot Games, and all associated properties are trademarks or registered trademarks of Riot Games, Inc.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
12.5.1.347 292 3/20/2022 12.5.1.347 is deprecated because it is no longer maintained.
12.5.1.346 152 3/12/2022 12.5.1.346 is deprecated because it is no longer maintained.
12.5.1.345-pull-request.71 130 3/12/2022 12.5.1.345-pull-request.71 is deprecated because it is no longer maintained.
12.4.1.343 190 2/20/2022 12.4.1.343 is deprecated because it is no longer maintained.
12.4.1.341 141 2/20/2022 12.4.1.341 is deprecated because it is no longer maintained.
12.4.1.340 140 2/19/2022 12.4.1.340 is deprecated because it is no longer maintained.
12.4.1.339-pull-request.65 126 2/19/2022 12.4.1.339-pull-request.65 is deprecated because it is no longer maintained.
12.4.1.336 141 2/18/2022 12.4.1.336 is deprecated because it is no longer maintained.
12.4.1.335-pull-request.64 125 2/18/2022 12.4.1.335-pull-request.64 is deprecated because it is no longer maintained.
12.4.1.333-pull-request.64 116 2/18/2022 12.4.1.333-pull-request.64 is deprecated because it is no longer maintained.
12.4.1.323 135 2/18/2022 12.4.1.323 is deprecated because it is no longer maintained.
12.4.1.322-features.queries 126 2/18/2022 12.4.1.322-features.queries is deprecated because it is no longer maintained.
12.4.1.320 138 2/18/2022 12.4.1.320 is deprecated because it is no longer maintained.
12.4.1.319 148 2/18/2022 12.4.1.319 is deprecated because it is no longer maintained.
12.4.1.318 147 2/17/2022 12.4.1.318 is deprecated because it is no longer maintained.
12.4.1.313 145 2/16/2022 12.4.1.313 is deprecated because it is no longer maintained.
12.4.1.312 137 2/16/2022 12.4.1.312 is deprecated because it is no longer maintained.
12.4.1.311 144 2/16/2022 12.4.1.311 is deprecated because it is no longer maintained.
12.3.1.310 145 2/13/2022 12.3.1.310 is deprecated because it is no longer maintained.
12.3.1.309 141 2/13/2022 12.3.1.309 is deprecated because it is no longer maintained.
12.3.1.306 147 2/13/2022 12.3.1.306 is deprecated because it is no longer maintained.
12.3.1.305 134 2/11/2022 12.3.1.305 is deprecated because it is no longer maintained.
12.3.1.302 155 2/10/2022 12.3.1.302 is deprecated because it is no longer maintained.
12.3.1.300 150 2/7/2022 12.3.1.300 is deprecated because it is no longer maintained.
12.3.1.299 144 2/7/2022 12.3.1.299 is deprecated because it is no longer maintained.
12.3.1.298 136 2/7/2022 12.3.1.298 is deprecated because it is no longer maintained.
12.3.1.297 135 2/6/2022 12.3.1.297 is deprecated because it is no longer maintained.
12.3.1.296 125 2/6/2022 12.3.1.296 is deprecated because it is no longer maintained.
12.3.1.295 143 2/6/2022 12.3.1.295 is deprecated because it is no longer maintained.
12.3.1.294 131 2/6/2022 12.3.1.294 is deprecated because it is no longer maintained.
12.3.1.293 141 2/6/2022 12.3.1.293 is deprecated because it is no longer maintained.
12.3.1.292 134 2/6/2022 12.3.1.292 is deprecated because it is no longer maintained.
12.3.1.291 133 2/6/2022 12.3.1.291 is deprecated because it is no longer maintained.
12.3.1.290 130 2/6/2022 12.3.1.290 is deprecated because it is no longer maintained.
12.3.1.289 160 2/5/2022 12.3.1.289 is deprecated because it is no longer maintained.
12.3.1.288 151 2/2/2022 12.3.1.288 is deprecated because it is no longer maintained.
12.2.1.286 170 2/1/2022 12.2.1.286 is deprecated because it is no longer maintained.
12.2.1.285 150 2/1/2022 12.2.1.285 is deprecated because it is no longer maintained.
12.2.1.284 156 2/1/2022 12.2.1.284 is deprecated because it is no longer maintained.
12.2.1.283 150 2/1/2022 12.2.1.283 is deprecated because it is no longer maintained.
12.2.1.281 150 2/1/2022 12.2.1.281 is deprecated because it is no longer maintained.
12.2.1.280 159 1/31/2022 12.2.1.280 is deprecated because it is no longer maintained.
12.2.1.279 148 1/31/2022 12.2.1.279 is deprecated because it is no longer maintained.
12.2.1.278-pull-request.44 135 1/31/2022 12.2.1.278-pull-request.44 is deprecated because it is no longer maintained.
12.2.1.276-pull-request.44 136 1/31/2022 12.2.1.276-pull-request.44 is deprecated because it is no longer maintained.
12.2.1.274 152 1/31/2022 12.2.1.274 is deprecated because it is no longer maintained.
12.2.1.273-pull-request.43 140 1/31/2022 12.2.1.273-pull-request.43 is deprecated because it is no longer maintained.
12.2.1.271 159 1/31/2022 12.2.1.271 is deprecated because it is no longer maintained.
12.2.1.270-pull-request.42 141 1/31/2022 12.2.1.270-pull-request.42 is deprecated because it is no longer maintained.
12.2.1.269-features... 142 1/31/2022 12.2.1.269-features.integration-tests is deprecated because it is no longer maintained.
12.2.1.268-features... 143 1/31/2022 12.2.1.268-features.integration-tests is deprecated because it is no longer maintained.
12.2.1.267-features... 134 1/31/2022 12.2.1.267-features.integration-tests is deprecated because it is no longer maintained.
12.2.1.266-features... 135 1/31/2022 12.2.1.266-features.integration-tests is deprecated because it is no longer maintained.
12.2.1.263-features... 134 1/31/2022 12.2.1.263-features.integration-tests is deprecated because it is no longer maintained.
12.2.1.262 157 1/30/2022 12.2.1.262 is deprecated because it is no longer maintained.
12.2.1.261-pull-request.39 138 1/30/2022 12.2.1.261-pull-request.39 is deprecated because it is no longer maintained.
12.2.1.257 159 1/28/2022 12.2.1.257 is deprecated because it is no longer maintained.
12.2.1.256-pull-request.38 141 1/28/2022 12.2.1.256-pull-request.38 is deprecated because it is no longer maintained.
12.2.1.254 155 1/27/2022 12.2.1.254 is deprecated because it is no longer maintained.
12.2.1.253-pull-request.37 129 1/27/2022 12.2.1.253-pull-request.37 is deprecated because it is no longer maintained.
12.2.1.251 195 1/23/2022 12.2.1.251 is deprecated because it is no longer maintained.
12.2.1.250-pull-request.34 125 1/23/2022 12.2.1.250-pull-request.34 is deprecated because it is no longer maintained.
12.2.1.248 153 1/23/2022 12.2.1.248 is deprecated because it is no longer maintained.
12.2.1.247-pull-request.33 142 1/23/2022 12.2.1.247-pull-request.33 is deprecated because it is no longer maintained.
12.2.1.245 154 1/20/2022 12.2.1.245 is deprecated because it is no longer maintained.
12.2.1.244-pull-request.30 132 1/20/2022 12.2.1.244-pull-request.30 is deprecated because it is no longer maintained.
12.1.1.242 149 1/19/2022 12.1.1.242 is deprecated because it is no longer maintained.
12.1.1.241-pull-request.29 134 1/19/2022 12.1.1.241-pull-request.29 is deprecated because it is no longer maintained.
12.1.1.239 158 1/19/2022 12.1.1.239 is deprecated because it is no longer maintained.
12.1.1.238-pull-request.28 133 1/19/2022 12.1.1.238-pull-request.28 is deprecated because it is no longer maintained.
12.1.1.234 155 1/19/2022 12.1.1.234 is deprecated because it is no longer maintained.
12.1.1.233-pull-request.27 129 1/19/2022 12.1.1.233-pull-request.27 is deprecated because it is no longer maintained.
12.1.1.231 138 1/19/2022 12.1.1.231 is deprecated because it is no longer maintained.
12.1.1.230-pull-request.26 127 1/19/2022 12.1.1.230-pull-request.26 is deprecated because it is no longer maintained.
12.1.1.228 141 1/19/2022 12.1.1.228 is deprecated because it is no longer maintained.
12.1.1.227-pull-request.25 127 1/19/2022 12.1.1.227-pull-request.25 is deprecated because it is no longer maintained.
12.1.1.224 144 1/15/2022 12.1.1.224 is deprecated because it is no longer maintained.
12.1.1.223 152 1/15/2022 12.1.1.223 is deprecated because it is no longer maintained.
12.1.1.222 145 1/15/2022 12.1.1.222 is deprecated because it is no longer maintained.
12.1.1.221-pull-request.24 143 1/15/2022 12.1.1.221-pull-request.24 is deprecated because it is no longer maintained.
12.1.1.220-pull-request.24 132 1/15/2022 12.1.1.220-pull-request.24 is deprecated because it is no longer maintained.
12.1.1.219-features.websockets 129 1/15/2022 12.1.1.219-features.websockets is deprecated because it is no longer maintained.
12.1.1.218-features.websockets 125 1/14/2022 12.1.1.218-features.websockets is deprecated because it is no longer maintained.
12.1.1.217 148 1/13/2022 12.1.1.217 is deprecated because it is no longer maintained.
12.1.1.216 142 1/13/2022 12.1.1.216 is deprecated because it is no longer maintained.
12.1.1.215 148 1/13/2022 12.1.1.215 is deprecated because it is no longer maintained.
12.1.1.214 153 1/13/2022 12.1.1.214 is deprecated because it is no longer maintained.
12.1.1.213 142 1/13/2022 12.1.1.213 is deprecated because it is no longer maintained.
12.1.1.212 154 1/13/2022 12.1.1.212 is deprecated because it is no longer maintained.
12.1.1.211 153 1/13/2022 12.1.1.211 is deprecated because it is no longer maintained.
12.1.1.210-pull-request.22 140 1/13/2022 12.1.1.210-pull-request.22 is deprecated because it is no longer maintained.
12.1.1.205 147 1/13/2022 12.1.1.205 is deprecated because it is no longer maintained.
12.1.1.201 148 1/11/2022 12.1.1.201 is deprecated because it is no longer maintained.
12.1.1.200 145 1/11/2022 12.1.1.200 is deprecated because it is no longer maintained.
12.1.1.199 153 1/11/2022 12.1.1.199 is deprecated because it is no longer maintained.
12.1.1.198-pull-request.21 134 1/11/2022 12.1.1.198-pull-request.21 is deprecated because it is no longer maintained.
12.1.1.192 165 1/10/2022 12.1.1.192 is deprecated because it is no longer maintained.
12.1.1.190 156 1/10/2022 12.1.1.190 is deprecated because it is no longer maintained.
12.1.1.189 156 1/10/2022 12.1.1.189 is deprecated because it is no longer maintained.
12.1.1.188 154 1/10/2022 12.1.1.188 is deprecated because it is no longer maintained.
12.1.1.187 146 1/9/2022 12.1.1.187 is deprecated because it is no longer maintained.
12.1.1.186 149 1/9/2022 12.1.1.186 is deprecated because it is no longer maintained.
12.1.1.185 150 1/9/2022 12.1.1.185 is deprecated because it is no longer maintained.
12.1.1.184 150 1/9/2022 12.1.1.184 is deprecated because it is no longer maintained.
12.1.1.183 144 1/9/2022 12.1.1.183 is deprecated because it is no longer maintained.
12.1.1.180 155 1/9/2022 12.1.1.180 is deprecated because it is no longer maintained.
12.1.1.179 153 1/9/2022 12.1.1.179 is deprecated because it is no longer maintained.
12.1.1.177 157 1/9/2022 12.1.1.177 is deprecated because it is no longer maintained.
12.1.1.175 161 1/9/2022 12.1.1.175 is deprecated because it is no longer maintained.
12.1.1.170 168 1/9/2022 12.1.1.170 is deprecated because it is no longer maintained.
12.1.1.169-pull-request.19 133 1/9/2022 12.1.1.169-pull-request.19 is deprecated because it is no longer maintained.
12.1.1.168-feature... 135 1/9/2022 12.1.1.168-feature.basic-lcu-interfaces is deprecated because it is no longer maintained.
12.1.1.167-feature... 140 1/9/2022 12.1.1.167-feature.basic-lcu-interfaces is deprecated because it is no longer maintained.
12.1.1.166-feature... 136 1/9/2022 12.1.1.166-feature.basic-lcu-interfaces is deprecated because it is no longer maintained.
12.1.1.165-feature... 137 1/9/2022 12.1.1.165-feature.basic-lcu-interfaces is deprecated because it is no longer maintained.
12.1.1.164-feature... 134 1/9/2022 12.1.1.164-feature.basic-lcu-interfaces is deprecated because it is no longer maintained.
12.1.1.163 147 1/8/2022 12.1.1.163 is deprecated because it is no longer maintained.
12.1.1.162 150 1/8/2022 12.1.1.162 is deprecated because it is no longer maintained.
12.1.1.157 155 1/8/2022 12.1.1.157 is deprecated because it is no longer maintained.
12.1.1.153 148 1/8/2022 12.1.1.153 is deprecated because it is no longer maintained.
12.1.1.152-pull-request.16 138 1/8/2022 12.1.1.152-pull-request.16 is deprecated because it is no longer maintained.
12.1.1.147 153 1/8/2022 12.1.1.147 is deprecated because it is no longer maintained.
12.1.1.146-pull-request.15 130 1/8/2022 12.1.1.146-pull-request.15 is deprecated because it is no longer maintained.
12.1.1.144-pull-request.15 128 1/8/2022 12.1.1.144-pull-request.15 is deprecated because it is no longer maintained.
12.1.1.142-pull-request.15 131 1/8/2022 12.1.1.142-pull-request.15 is deprecated because it is no longer maintained.
12.1.1.140 157 1/8/2022 12.1.1.140 is deprecated because it is no longer maintained.
12.1.1.139-pull-request.14 139 1/8/2022 12.1.1.139-pull-request.14 is deprecated because it is no longer maintained.
12.1.1.136 156 1/8/2022 12.1.1.136 is deprecated because it is no longer maintained.
12.1.1.135-pull-request.13 132 1/8/2022 12.1.1.135-pull-request.13 is deprecated because it is no longer maintained.
12.1.1.130 152 1/8/2022 12.1.1.130 is deprecated because it is no longer maintained.
12.1.1.129-pull-request.12 141 1/8/2022 12.1.1.129-pull-request.12 is deprecated because it is no longer maintained.
12.1.1.128-feature... 133 1/8/2022 12.1.1.128-feature.basic-interfaces is deprecated because it is no longer maintained.
12.1.1.125 151 1/7/2022 12.1.1.125 is deprecated because it is no longer maintained.
12.1.1.124-pull-request.11 139 1/7/2022 12.1.1.124-pull-request.11 is deprecated because it is no longer maintained.
12.1.1.122 150 1/7/2022 12.1.1.122 is deprecated because it is no longer maintained.
12.1.1.121-pull-request.11 132 1/7/2022 12.1.1.121-pull-request.11 is deprecated because it is no longer maintained.
12.1.1.119 155 1/7/2022 12.1.1.119 is deprecated because it is no longer maintained.
12.1.1.118 153 1/7/2022 12.1.1.118 is deprecated because it is no longer maintained.
12.1.1.117 152 1/7/2022 12.1.1.117 is deprecated because it is no longer maintained.
12.1.1.116 156 1/7/2022 12.1.1.116 is deprecated because it is no longer maintained.
12.1.1.115 156 1/7/2022 12.1.1.115 is deprecated because it is no longer maintained.
12.1.1.114 145 1/7/2022 12.1.1.114 is deprecated because it is no longer maintained.
12.1.1.110 163 1/7/2022 12.1.1.110 is deprecated because it is no longer maintained.
12.1.1.87-feature... 144 1/7/2022 12.1.1.87-feature.push-to-github is deprecated because it is no longer maintained.
12.1.1.86-feature... 134 1/7/2022 12.1.1.86-feature.push-to-github is deprecated because it is no longer maintained.
12.1.1.85-feature... 140 1/7/2022 12.1.1.85-feature.push-to-github is deprecated because it is no longer maintained.
12.1.1.80-feature... 144 1/7/2022 12.1.1.80-feature.push-to-github is deprecated because it is no longer maintained.
12.1.1.79-feature... 137 1/7/2022 12.1.1.79-feature.push-to-github is deprecated because it is no longer maintained.
12.1.1.74-feature... 137 1/7/2022 12.1.1.74-feature.push-to-github is deprecated because it is no longer maintained.
12.1.1.72 152 1/7/2022 12.1.1.72 is deprecated because it is no longer maintained.
12.1.1.71-pull-request.7 138 1/7/2022 12.1.1.71-pull-request.7 is deprecated because it is no longer maintained.
12.1.1.70-feature... 137 1/7/2022 12.1.1.70-feature.download-riot-certificate is deprecated because it is no longer maintained.
12.1.1.69-feature... 140 1/7/2022 12.1.1.69-feature.download-riot-certificate is deprecated because it is no longer maintained.
0.0.4-alpha 174 1/6/2022 0.0.4-alpha is deprecated because it is no longer maintained.
0.0.3-alpha 170 1/6/2022 0.0.3-alpha is deprecated because it is no longer maintained.