ClashRoyaleApi 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package ClashRoyaleApi --version 1.0.0
NuGet\Install-Package ClashRoyaleApi -Version 1.0.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="ClashRoyaleApi" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ClashRoyaleApi --version 1.0.0
#r "nuget: ClashRoyaleApi, 1.0.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 ClashRoyaleApi as a Cake Addin
#addin nuget:?package=ClashRoyaleApi&version=1.0.0

// Install ClashRoyaleApi as a Cake Tool
#tool nuget:?package=ClashRoyaleApi&version=1.0.0

Clash Royale Api

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 ClashRoyaleApi -Version 1.0.0
  • $ dotnet add package ClashRoyaleApi --version 1.0.0
  • $ paket add ClashRoyaleApi --version 1.0.0

Models:

Arena Card Chest League Player

Available methods:

Requirements

using ClashRoyaleApi;
using ClashRoyaleApi.Models;

Cards:

// Returns all cards
List<Card> cards = RoyaleAPI.GetCards();

// Returns a single card - Id name or id
Card card = RoyaleAPI.GetCard("fireball");

// Returns the card image url
string imageUrl = RoyaleAPI.GetCardImageURL(idName);

Arenas:

// Returns all arenas
List<Arena> arenas = RoyaleAPI.GetArenas();

// Returns a single arena - id or idname
Arena arena = RoyaleAPI.GetArena(id);

// Returns the arena image url
string arena url = RoyaleAPI.GetArenaImageURL(idName);

Chests:

// Returns all chests
List<Chest> chests = RoyaleAPI.GetChests();

// Returns a single chest
Chest chest = RoyaleAPI.GetChest(id);

// Returns the chest image url
string chestImageUrl = RoyaleAPI.GetChestURL(idName);

Leagues:

// Returns all leagues
List<League> leagues = RoyaleAPI.GetLeagues();

// Returns a single league
League league = RoyaleAPI.GetLeague(id);

// Returns the league image
string leagueImageUrl = RoyaleAPI.GetLeagueImageURL(idName);

Player info:

// Returns all info about players
List<Players> players = RoyaleAPI.GetPlayers();

// Returns info about a single player level
Player player = RoyaleAPI.GetPlayer(id);

And more examples:

// Getting all the cards
List<Card> cards = RoyaleAPI.GetCards();
foreach (Card card in cards)
{
    Console.WriteLine(card.Name);
}
// Getting a random deck
List<Card> randomDeck = RoyaleAPI.GetRandomDeck();

Explore model properties:

alternate text is missing from this package README image;

TODO
  • Better error handling.
  • Improve documentation.
  • General refactor.
  • 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

Initial project phase