kara_riotapi 1.0.0
dotnet add package kara_riotapi --version 1.0.0
NuGet\Install-Package kara_riotapi -Version 1.0.0
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="kara_riotapi" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add kara_riotapi --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: kara_riotapi, 1.0.0"
#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 kara_riotapi as a Cake Addin #addin nuget:?package=kara_riotapi&version=1.0.0 // Install kara_riotapi as a Cake Tool #tool nuget:?package=kara_riotapi&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
INCLUDED APIS:
- /lol/summoner/v4/summoners/{encryptedSummonerId}
- /lol/summoner/v4/summoners/by-name/{summonerName}
- /lol/match/v4/matchlists/by-account/{encryptedAccountId}
- /lol/match/v5/matches/by-puuid/{puuid}/ids
- /lol/match/v4/matches/{matchId}
- /lol/match/v5/matches/{matchId}
- /lol/league/v4/entries/by-summoner/{encryptedSummonerId}
INCLUDED IMAGES:
- Champions
- Items
- Leagues
- Runes
- Positions
- Summoners
USAGE
// set your api key
Riot.ApiKey.Data = "YOUR_API_KEY";
// set here the limits of your key (for dev keys the rate limits are: 20 requests every 1 second, 100 requests every 2 minutes)
var apiLimiter = new ApiLimiter("key", new List<(TimeSpan, int)> { (TimeSpan.FromSeconds(1), 20), (TimeSpan.FromMinutes(2), 100) });
// player informations
var platform = Platform.EUW1;
var region = RouteUtils.GetRegion(platform);
var summonerName = "syven";
var matchlistIndex = 0;
// get summoner and league of player
var summoner = await Riot.GetSummonerByNameV4Async(apiLimiter, platform, summonerName);
var leagues = await Riot.GetLeaguesV4Async(apiLimiter, platform, summoner.Id);
// get first 100 matches of player with match-v4 api (will deprecate soon)
var (matchIdsV4, isDoneV4) = await Riot.GetMatchlistV4Async(apiLimiter, platform, summoner.AccountId, matchlistIndex);
var matchIdV4 = matchIdsV4.ElementAtOrDefault(0);
var matchV4 = await Riot.GetMatchV4Async(apiLimiter, platform, long.Parse(matchIdV4.Substring(matchIdV4.IndexOf("_") + 1)));
// get first 100 matches of player with match-v5 api
var (matchIdsV5, isDoneV5) = await Riot.GetMatchlistV5Async(apiLimiter, region, summoner.AccountId, matchlistIndex);
var matchIdV5 = matchIdsV5.ElementAtOrDefault(0);
var matchV5 = await Riot.GetMatchV5Async(apiLimiter, region, matchIdV5);
// get player in his last match
var participant = matchV5.Info.Participants.First(x => x.SummonerId == summoner.Id);
// set images from library resource (wpf)
this.ImagePosition.Source = ViewUtils.LoadImage(Riot.GetImage($"Position{participant.IndividualPosition.UpperCaseFirstLetter()}"));
this.ImageChampion.Source = ViewUtils.LoadImage(Riot.GetImage($"Champion{participant.ChampionId}"));
this.ImageSummoner1.Source = ViewUtils.LoadImage(Riot.GetImage($"Summoner{participant.Summoner1Id}"));
this.ImageSummoner2.Source = ViewUtils.LoadImage(Riot.GetImage($"Summoner{participant.Summoner2Id}"));
this.ImagePerk1.Source = ViewUtils.LoadImage(Riot.GetImage($"Perk{PerkUtils.GetPerkId(participant.Perks.Styles[0].Selections.Select(x => x.Perk))}"));
this.ImagePerk2.Source = ViewUtils.LoadImage(Riot.GetImage($"Perk{participant.Perks.Styles[1].Style}"));
this.ImageItem0.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item0}"));
this.ImageItem1.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item1}"));
this.ImageItem2.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item2}"));
this.ImageItem3.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item3}"));
this.ImageItem4.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item4}"));
this.ImageItem5.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item5}"));
this.ImageItem6.Source = ViewUtils.LoadImage(Riot.GetImage($"Item{participant.Item6}"));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- kara_core (>= 1.0.1)
- Newtonsoft.Json (>= 13.0.1)
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 |
---|---|---|
1.0.0 | 403 | 7/29/2021 |