Skip to content

youtpout/LeagueOfLegendsAPI

 
 

Repository files navigation

I'm not maintining this project anymore. Feel free to fork it or use RiotSharp.

Portable C# Library for League of Legends API

Install

  • Register here

  • Install the library from NuGet. You can find it here.

PM> Install-Package Remake.PortableLeagueAPI

Example

var leagueAPI = new LeagueApi("YOUR API KEY HERE", RegionEnum.Euw, true);

var summoner = await leagueAPI.Summoner.GetSummonerByNameAsync("TuC Ølen");
var recentGames = await summoner.GetRecentGamesAsync();

var item = await leagueAPI.Static.GetItemsAsync(
  1001, 
  ItemDataEnum.All, 
  languageCode: LanguageEnum.French);
  
var imageUrl = await item.Image.GetUrlAsync();

Note : By default the library doesn't check for the rate limit. But if you want to wait when you reach it, set the third parameter in the LeagueAPI constructor to true.

Notes

  • If your visual studio puts in red some methods from the API. Please, unload and reload your project from the solution.
  • If something doesn't work or isn't up to date. Please, check if there is any available updates on NuGet. If it still doesn't work, create an issue.

Status

Dev

PortableLeagueAPI Build Status

NuGet

NuGet version

Last changes

Check it here

Disclaimer

This product is not endorsed, certified or otherwise approved in any way by Riot Games, Inc. or any of its affiliates.

Contact

Do not hesitate to reach me on twitter @kRapaille or by mail

About

Portable C# Library for League of legends API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 89.6%
  • PowerShell 10.4%