Kunc.RiotGames.Api 0.1.4

Prefix Reserved
dotnet add package Kunc.RiotGames.Api --version 0.1.4                
NuGet\Install-Package Kunc.RiotGames.Api -Version 0.1.4                
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.4" />                
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.4                
#r "nuget: Kunc.RiotGames.Api, 0.1.4"                
#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.4

// Install Kunc.RiotGames.Api as a Cake Tool
#tool nuget:?package=Kunc.RiotGames.Api&version=0.1.4                

Kunc.RiotGames.Api

Nuget

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 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.

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
0.1.4 113 6/28/2024
0.1.3 105 6/18/2024
0.1.2 102 6/2/2024
0.1.1 117 4/24/2024