ClashRoyale 1.0.2
dotnet add package ClashRoyale --version 1.0.2
NuGet\Install-Package ClashRoyale -Version 1.0.2
<PackageReference Include="ClashRoyale" Version="1.0.2" />
paket add ClashRoyale --version 1.0.2
#r "nuget: ClashRoyale, 1.0.2"
// Install ClashRoyale as a Cake Addin #addin nuget:?package=ClashRoyale&version=1.0.2 // Install ClashRoyale as a Cake Tool #tool nuget:?package=ClashRoyale&version=1.0.2
Clash Royale
Get all info about clash royale cards, loot, leagues and player levels.
This is a wrapper for the awesome NodeJS Clash Royale api made by Martin Carrera.
Motivation
The need to use this library in any dotnet core application.
Usage
Install using your favorite package manager:
PM> Install-Package ClashRoyale -Version 1.0.1
$ dotnet add package ClashRoyale --version 1.0.1
$ paket add ClashRoyale --version 1.0.1
Models:
Arena
Card
Chest
League
Player
Available methods:
Requirements
using ClashRoyale;
using ClashRoyale.Models;
Cards:
// Returns all cards
List<Card> cards = Royale.GetCards();
// Returns a single card - Id name or id
Card card = Royale.GetCard("fireball");
// Returns the card image url
string imageUrl = Royale.GetCardImageURL(idName);
Arenas:
// Returns all arenas
List<Arena> arenas = Royale.GetArenas();
// Returns a single arena - id or idname
Arena arena = Royale.GetArena(id);
// Returns the arena image url
string arena url = Royale.GetArenaImageURL(idName);
Chests:
// Returns all chests
List<Chest> chests = Royale.GetChests();
// Returns a single chest
Chest chest = Royale.GetChest(id);
// Returns the chest image url
string chestImageUrl = Royale.GetChestURL(idName);
Leagues:
// Returns all leagues
List<League> leagues = Royale.GetLeagues();
// Returns a single league
League league = Royale.GetLeague(id);
// Returns the league image
string leagueImageUrl = Royale.GetLeagueImageURL(idName);
Player info:
// Returns all info about players
List<Players> players = Royale.GetPlayers();
// Returns info about a single player level
Player player = Royale.GetPlayer(id);
And more examples:
// Getting all the cards
List<Card> cards = Royale.GetCards();
foreach (Card card in cards)
{
Console.WriteLine(card.Name);
}
;
Random deck:
List<Card> randomDeck = Royale.GetRandomDeck();
TODO
- Better error handling.
- General refactor.
Improve documentation.Publish package.- Available @ Nuget
License
Important Notice
This content is not affiliated with, endorsed, sponsored, or specifically approved by Supercell and Supercell is not responsible for it. For more information see Supercell's Fan Content Policy: www.supercell.com/fan-content-policy.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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. |
.NET Core | netcoreapp2.1 is compatible. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
-
.NETCoreApp 2.1
- Newtonsoft.Json (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Renamed package.