Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 940 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 940 Bytes

Nuget Nuget downloads

ClashOfClans.NET

A simple wrapper for the official clash of clans API.

Installation

NuGet package manager console: Install-Package ClashOfClans.NET

Or using the .NET core CLI: dotnet add package ClashOfClans.NET

Usage (basic)

using ClashOfClans;

var clashOfClansClient = new ClashOfClansClient("your_api_token");

Usage with IHttpClientFactory (Dependency Injection)

using ClashOfClans;
using ClashOfClans.Core.Interfaces;

// Typically from a web application builder
IServiceCollection services;

services.AddHttpClient();

services.AddSingleton<IClashOfClansClient>(provider => new ClashOfClansClient("your_api_token", provider.GetService<IHttpClientFactory>()));