ManiaAPI.TrackmaniaWS
2.10.0
dotnet add package ManiaAPI.TrackmaniaWS --version 2.10.0
NuGet\Install-Package ManiaAPI.TrackmaniaWS -Version 2.10.0
<PackageReference Include="ManiaAPI.TrackmaniaWS" Version="2.10.0" />
<PackageVersion Include="ManiaAPI.TrackmaniaWS" Version="2.10.0" />
<PackageReference Include="ManiaAPI.TrackmaniaWS" />
paket add ManiaAPI.TrackmaniaWS --version 2.10.0
#r "nuget: ManiaAPI.TrackmaniaWS, 2.10.0"
#:package ManiaAPI.TrackmaniaWS@2.10.0
#addin nuget:?package=ManiaAPI.TrackmaniaWS&version=2.10.0
#tool nuget:?package=ManiaAPI.TrackmaniaWS&version=2.10.0
ManiaAPI.TrackmaniaWS
Wraps https://ws.trackmania.com/ (old TMF web API). This API requires authorization (via constructor).
Features
- Players
- Info (registration ID from login for example)
- Nickname as HTML
- Tags
- Multiplayer (ladder) and solo (skill points) ranking, with the rank in each zone
- Zones
- By ID or path, ID from path
- All zones and child zones, with paging and sorting
- Rankings
- Solo leaderboard of players, overall or on a challenge (map), in any zone
- Multiplayer leaderboard of players in any zone and environment
- Multiplayer leaderboard of zones
- Number of registered accounts
- Short manialink codes
- ManiaHome notifications from a manialink
- Check that the service is up, without needing credentials
Errors throw TrackmaniaWSResponseException (an HttpRequestException) with the message of the response, like Invalid environment "Foo".
Setup
using ManiaAPI.TrackmaniaWS;
var ws = new TrackmaniaWS("tmf_yourapp", "password");
// Ready to use
To check that the service is up, PingAsync uses its public test route, which ignores the credentials:
bool up = await ws.PingAsync();
For DI, consider using the ManiaAPI.TrackmaniaWS.Extensions.Hosting package.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- TmEssentials (>= 2.6.0)
-
net11.0
- TmEssentials (>= 2.6.0)
-
net8.0
- TmEssentials (>= 2.6.0)
-
net9.0
- TmEssentials (>= 2.6.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ManiaAPI.TrackmaniaWS:
| Package | Downloads |
|---|---|
|
ManiaAPI.TrackmaniaWS.Extensions.Hosting
Extension methods of the old TMF web API for ASP.NET Core. Part of the ManiaAPI.NET library set. |
GitHub repositories
This package is not used by any popular GitHub repositories.
- Added player tags, HTML nicknames, solo and multiplayer rankings, zone queries, and player, challenge, and zone leaderboards
- Added registered player counts, Manialink details, ManiaHome notifications, and `PingAsync`
- Added `TrackmaniaWSResponseException` for API error responses and converters for string-encoded numbers and integer lists
- Made JSON converters public for external serialization
- Updated the User-Agent to report the installed package version
- Added .NET 11 support