Library to interact with clubelo.com API
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
May 29, 2024
$ dotnet add package ClubElo.APIIt's a C# library that allows you to send requests to the ClubElo API.
You can get the Elo ranks by team by creating an instance of the ClubEloHttpClient class and calling the GetClubEloRanksByTeamAsync method.
var client = new ClubEloHttpClient();
var result = await client.GetClubEloRanksByTeamAsync("ManCity");
You can get the Elo ranks by date by creating an instance of the ClubEloHttpClient class and calling the GetClubEloRanksByDateAsync method.
var client = new ClubEloHttpClient();
var result = await client.GetClubEloRanksByDateAsync("2024-01-01");
Notice tha the date must be in the format yyyy-MM-dd (2024-01-01).
You can get the Elo fixtures by creating an instance of the ClubEloHttpClient class and calling the GetClubEloFixturesAsync method.
var client = new ClubEloHttpClient();
var result = await client.GetClubEloFixturesAsync();
All methods return a ClubEloResult object, by default the propert Success is set to True and the Message to OK, when an error occurs Success is set to False and details of the error can be found in Message property.
For a full reference of all the ClubEloRank and ClubEloFixture propeties please visit ClubElo API