RiotNetAPI 1.2.0

dotnet add package RiotNetAPI --version 1.2.0                
NuGet\Install-Package RiotNetAPI -Version 1.2.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="RiotNetAPI" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RiotNetAPI --version 1.2.0                
#r "nuget: RiotNetAPI, 1.2.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 RiotNetAPI as a Cake Addin
#addin nuget:?package=RiotNetAPI&version=1.2.0

// Install RiotNetAPI as a Cake Tool
#tool nuget:?package=RiotNetAPI&version=1.2.0                

TO DO:

  • Implement docs endpoints for LoR, TFT and Valorant.
  • Implement Tournaments endpoints.

What is RiotNet?

RiotNet is an implementation of the Riot API in .NET written in C#. It's purpose is facilitate the usage of the API with asynchronous methods and many features that can be easily used. It also implements the DDragon (DataDragon) API to get certain data of the games, opening the posibilities of the application. Stop writting unnecesary code for many hours when RiotNet exists, with a few lines you can get anything that you want.

Currently RiotNet just supports GET request but in the future it will be able to execute POST request.

Installation

Git:

git clone https://github.com/Zettte/RiotNet

Nuget:

dotnet add package RiotNet.Api.09.10.2022.Sample --version 1.1.0

Or download the Source Code from the releases: https://github.com/Zettte/RiotNet/releases/tag/v1.1.0

How to use RiotNet?

When you have already downloaded the package, go to your main program an paste the following code:

class Demo
{
    public static async Task Main(string[] args)
    {
        RiotNetAPI Riot = new ("YOUR API KEY");

        // Change the region acording to your preferences. You can see the default platforms and regions in the RiotNetAPI.cs file.

        RiotNetAPI.LolPlatform = LeaguePlatforms.LA1;
    }
}

This will setup everything and you can use every method inside the RiotNetAPI class, for example, let's say you want to get your account using your LoL summoner name, there's no problem, just do this:

    // Send me a friend request. ^^
    var summonerData = Riot.LeagueofLegends.GetSummonerByAccountName("Zette");
    Console.WriteLine(summonerData);

And you'll get something like this:

Executing request to: https://la1.api.riotgames.com/lol/summoner/v4/summoners/by-name/Zette/
{
    "id": "Summoner ID",
    "accountId": "Account ID",
    "puuid": "Summoner PUUID",
    "name": "Zette",
    "profileIconId": 16,
    "revisionDate": "revision Date",
    "summonerLevel": 152
}

And don't wait to use our DataDragon Implementation to acces all the resources availables, like all the Yasuo assets available. And it gets better now, you can save it on your computer!

    string champImageUrl = await Riot.DataDragon.GetChampionSplahSAsset("Yasuo");
    await ContentHandler.SaveAsImage(champImageUrl, "Yasuo.jpg");
    // And now you have a nice wallpaper.

Wanting information about something related to another Riot's product? Say no more, we got you.

    var leaderboard = await API.LegendsOfRunaterra.GetLeaderboard();
    var league = await API.TeamfightTactics.GetLeague(AdvancedQueues.challengerleagues);
    var match = await API.Valorant.GetMatch("Any match ID");

What are you waiting to use RiotNet and create incredible things? The project is currently in progress and it's being updated almost daily, but don't wait anymore and start using RiotNet.

Product Compatible and additional computed target framework versions.
.NET 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. 
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
1.2.0 258 10/19/2022

Implemented the LiveClientData endpoints and the Replay API endpoints.
Also fixed some methods bugs and modified ContentHandler class.