All Projects → MingweiSamuel → Camille

MingweiSamuel / Camille

Licence: Unknown and 2 other licenses found Licenses found Unknown LICENSE.txt Unknown LICENSE-APACHE.txt MIT LICENSE-MIT.txt
C# Riot API Library. Thread safe, automatic retries, autogenerated nightly releases.

Programming Languages

C#
18002 projects
javascript
184084 projects - #8 most used programming language
powershell
5483 projects

Projects that are alternatives of or similar to Camille

LeagueAPI
League of Legends API & Data Framework in Swift
Stars: ✭ 50 (-39.02%)
Mutual labels:  league-of-legends, riot-api, riot-games-api, league-api
runeterra
Legends of Runeterra deck code encoder/decoder in JavaScript
Stars: ✭ 45 (-45.12%)
Mutual labels:  league-of-legends, riot-games-api, league-api
golio
League of Legends API client written in Golang
Stars: ✭ 45 (-45.12%)
Mutual labels:  league-of-legends, riot-api
Pyot
AsyncIO based high-level Python Riot Games API framework which encourages rapid development and clean, pragmatic design.
Stars: ✭ 56 (-31.71%)
Mutual labels:  league-of-legends, riot-games-api
game apis
This repository is for integrating with different apis to allow you to pull player or game data
Stars: ✭ 24 (-70.73%)
Mutual labels:  league-of-legends, league-api
OddAutoWalker
League of Legends External Orb Walker
Stars: ✭ 56 (-31.71%)
Mutual labels:  league-of-legends, league-api
kernel
A plug & play Riot API proxy server
Stars: ✭ 28 (-65.85%)
Mutual labels:  league-of-legends, riot-games-api
Mecha
🚀 Debugger and plugin loader for the League of Legends client
Stars: ✭ 48 (-41.46%)
Mutual labels:  league-of-legends, league-api
league-toolkit
⚙️ A set of additional options for the updated League of Legends client.
Stars: ✭ 20 (-75.61%)
Mutual labels:  league-of-legends, riot-api
trophy-hunter
Trophy Hunter is a League of Legends companion app for the Overwolf store
Stars: ✭ 21 (-74.39%)
Mutual labels:  league-of-legends, riot-api
league-connect
🔌 Promise-based NodeJS interface to the League of Legends Client APIs
Stars: ✭ 92 (+12.2%)
Mutual labels:  league-of-legends, riot-api
LoL-Match-Prediction
Win probability predictions for League of Legends matches using neural networks
Stars: ✭ 34 (-58.54%)
Mutual labels:  league-of-legends
legendary-rune-maker
An automation app for League of Legends
Stars: ✭ 75 (-8.54%)
Mutual labels:  league-of-legends
onetricks.net
(WIP) kayn-powered (typescript node.js) ReasonReact app presenting you a dashboard of high ELO one trick ponies in League of Legends
Stars: ✭ 13 (-84.15%)
Mutual labels:  league-of-legends
MindCorpViewer
League Of Legends Model Viewer
Stars: ✭ 19 (-76.83%)
Mutual labels:  league-of-legends
ChromaLeague
Java open-source Razer Chroma keyboard integration for League of Legends
Stars: ✭ 34 (-58.54%)
Mutual labels:  league-of-legends
lol-replay
A collection of Go (golang) packages to record and play back League of Legends games from the spectator endpoint.
Stars: ✭ 61 (-25.61%)
Mutual labels:  league-of-legends
lol-client-java-api
Simple library which provides access to internal League of Legends Client API.
Stars: ✭ 51 (-37.8%)
Mutual labels:  league-of-legends
league-bot
A League of Legends bot to level up accounts. For best results use the settings required settings in the code/README. This bot is designed for Windows computers.
Stars: ✭ 19 (-76.83%)
Mutual labels:  league-of-legends
KBotExt
Application that sends custom requests to League of Legends LCU api
Stars: ✭ 86 (+4.88%)
Mutual labels:  league-of-legends

Camille

Github Actions NuGet Stable NuGet Pre Release API Reference

C# Library for the Riot Games API

Camille's goals are speed, reliability, and maintainability. Camille handles rate limits and large requests with ease. Data classes are automatically generated from the Riot API Reference (Swagger).

Features

  • Fast, asynchronous, thread-safe.
  • Automatically retries failed requests.
  • Automatic up-to-date nightlies, reflecting Riot API changes within 24 hours.
  • Multi-targeted: .NET Standard 1.1+, .NET Framework 4.5+, .NET Core 2.0, .NET Standard 2.1+, .NET Core 3.0+.
  • Highly-configurable.
  • Riot API LOL-V4, TFT, LOR support.
  • C# 8 nullable support.

Installation

Install via NuGet (Camille.RiotGames).

Type the following in the package manager console:

Install-Package Camille.RiotGames -IncludePrerelease

Or use the .NET CLI:

dotnet add package Camille.RiotGames --prerelease

Usage

All API interactions are done using a RiotApi instance. RiotApi.NewInstance takes either just an API key (for default settings) or a IRiotApiConfig instance (for custom settings).

using Camille.Enums;
using Camille.RiotGames;
var riotApi = RiotGamesApi.NewInstance("RGAPI-12345678-abcd-1234-abcd-123456abcdef");
// OR
var riotApi = RiotGamesApi.NewInstance(
    new RiotApiConfig.Builder("RGAPI-12345678-abcd-1234-abcd-123456abcdef")
    {
        MaxConcurrentRequests = 200,
        Retries = 10,
        // ...
    }.Build()
);

You can find all configuration options here.

API methods are divided up into respective endpoints, corresponding to the left bar of the API reference.

Example

Print Summoner's Top Champions

// Get summoners by name synchronously. (Note: async is faster as it allows simultaneous requests).
var summoners = new[]
{
    riotApi.SummonerV4().GetBySummonerName(PlatformRoute.NA1, "jAnna kendrick"),
    riotApi.SummonerV4().GetBySummonerName(PlatformRoute.NA1, "lug nuts k")
};

foreach (var summoner in summoners)
{
    Console.WriteLine($"{summoner.Name}'s Top 10 Champs:");

    var masteries =
        riotApi.ChampionMasteryV4().GetAllChampionMasteries(PlatformRoute.NA1, summoner.Id);

    for (var i = 0; i < 10; i++)
    {
        var mastery = masteries[i];
        // Get champion for this mastery.
        var champ = (Champion) mastery.ChampionId;
        // print i, champ id, champ mastery points, and champ level
        Console.WriteLine("{0,3}) {1,-16} {2,10:N0} ({3})", i + 1, champ.ToString(),
            mastery.ChampionPoints, mastery.ChampionLevel);
    }
    Console.WriteLine();
}

Output (2022-01-17):

Janna Kendrick's Top 10 Champs:
  1) EKKO              1,803,701 (7)
  2) PYKE                266,410 (7)
  3) SYLAS               193,439 (7)
  4) MASTERYI            134,140 (7)
  5) MORDEKAISER         127,937 (7)
  6) YASUO                93,904 (7)
  7) VIEGO                88,267 (7)
  8) AHRI                 82,106 (7)
  9) JINX                 76,788 (6)
 10) POPPY                74,982 (7)
    
LugnutsK's Top 10 Champs:
  1) ZYRA                841,132 (7)
  2) SORAKA               81,793 (6)
  3) MORGANA              62,917 (5)
  4) SONA                 55,073 (6)
  5) NAMI                 49,917 (6)
  6) JANNA                46,563 (5)
  7) BRAND                46,401 (5)
  8) TARIC                41,302 (6)
  9) EKKO                 40,245 (5)
 10) POPPY                33,859 (5)

API Reference

Automatically generated API Reference

Source Code

Projects are located in src/.

Generated Classes

The majority of the code in Camille is automatically generated. The generated sources are not commited to the master branch, but can be viewed in the gh-pages branch or when building locally.

The actual code for generating these classes is in the srcgen folder. The C#-generating code is in *.cs.dt files and is written in NodeJS, using doT.js templates.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].