Kunc.RiotGames.Api
0.1.2
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Kunc.RiotGames.Api --version 0.1.2
NuGet\Install-Package Kunc.RiotGames.Api -Version 0.1.2
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="Kunc.RiotGames.Api" Version="0.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kunc.RiotGames.Api --version 0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kunc.RiotGames.Api, 0.1.2"
#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 Kunc.RiotGames.Api as a Cake Addin #addin nuget:?package=Kunc.RiotGames.Api&version=0.1.2 // Install Kunc.RiotGames.Api as a Cake Tool #tool nuget:?package=Kunc.RiotGames.Api&version=0.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Kunc.RiotGames.Api
Features
The rate limiter is automatically set according to your api key.
How to Use
var api = RiotGamesApi.Create(c => c.ApiKey = "RGAPI-...");
// or
using var services = new ServiceCollection()
.AddRiotGamesApi(c => c.ApiKey = "RGAPI-...")
.BuildServiceProvider();
var api = services.GetRequiredService<IRiotGamesApi>();
var account = await api.RiotAccountV1.GetAccountByRiotIdAsync(Regions.EUROPE, "AoshiW#IRON");
Console.WriteLine($"Account: {account.GetRiotId()}");
var summoner = await api.LolSummonerV4.GetSummonerByPuuidAsync(Regions.EUN1, account.Puuid);
Console.WriteLine();
Console.WriteLine("Ranks:");
var entries = await api.LolLeagueV4.LeagueEntriesForSummonerAsync(Regions.EUN1, summoner.Id);
foreach (var entry in entries)
{
Console.WriteLine($"{entry.QueueType}: {entry.ToRank()}");
}
Disclaimer
Kunc.RiotGames.Api
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Kunc.RiotGames.Core (>= 0.1.5)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- System.Threading.RateLimiting (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.