AoE2Net.Client 0.2.1

dotnet add package AoE2Net.Client --version 0.2.1
NuGet\Install-Package AoE2Net.Client -Version 0.2.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="AoE2Net.Client" Version="0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AoE2Net.Client --version 0.2.1
#r "nuget: AoE2Net.Client, 0.2.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 AoE2Net.Client as a Cake Addin
#addin nuget:?package=AoE2Net.Client&version=0.2.1

// Install AoE2Net.Client as a Cake Tool
#tool nuget:?package=AoE2Net.Client&version=0.2.1

AoE2Net.Client

<p align="center"> <a href="https://www.nuget.org/packages/AoE2Net.Client/"> <img src="https://img.shields.io/nuget/v/AoE2Net.Client"/> </a> </p>

A C# Wrapper for the AoE2.NET API

Usage


//create new Client
var aoe2NetClient = new AoE2NetClient("MyCoolApp");

//get AoE2Net API strings
var strings = await aoe2NetClient.GetStringsAsync();

//get leaderboard for 1v1
var leaderboard = await aoe2NetClient.GetLeaderboardAsync(LeaderboardType.RandomMap1v1, 0, 100);

//get rating history for 1v1
var ratinghistory = await aoe2NetClient.GetRatingHistoryAsync(LeaderboardType.RandomMap1v1, 0, 20, profileId: 123456);

//get match history
var matchHistory = await aoe2NetClient.GetPlayerMatchHistoryAsync(100, profileId: 123456);

//get match history for multiple players
var playerList = new List<string>();
playerList.Add("123456");
playerList.Add("78901");
playerList.Add("234567");

var matchesHistory = await aoe2NetClient.GetPlayersMatchHistoryAsync(100, profileIds: playerList);

//get ongoing matches
var ongoingMatches = await aoe2NetClient.GetOngoingMatchesAsync();

Todo

  • Support for other AoE titles?

Misc

Special thanks to the aoe2.net creators and maintainers.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

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
0.2.1 346 3/27/2023
0.2.0 332 2/1/2023
0.1.0 267 1/16/2023