ClashRoyale 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ClashRoyale --version 1.0.1                
NuGet\Install-Package ClashRoyale -Version 1.0.1                
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="ClashRoyale" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClashRoyale --version 1.0.1                
#r "nuget: ClashRoyale, 1.0.1"                
#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 ClashRoyale as a Cake Addin
#addin nuget:?package=ClashRoyale&version=1.0.1

// Install ClashRoyale as a Cake Tool
#tool nuget:?package=ClashRoyale&version=1.0.1                

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);
}

alternate text is missing from this package README image;

Random deck:

List<Card> randomDeck = Royale.GetRandomDeck();
TODO
  • Better error handling.
  • General refactor.
  • Improve documentation.
  • Publish package. - Available @ Nuget
License

MIT - André Varandas

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 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.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 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.0.2 1,006 9/9/2018
1.0.1 1,096 10/3/2017

Renamed package.