Aydsko.iRacingData
0.4.0
See the version list below for details.
dotnet add package Aydsko.iRacingData --version 0.4.0
NuGet\Install-Package Aydsko.iRacingData -Version 0.4.0
<PackageReference Include="Aydsko.iRacingData" Version="0.4.0" />
paket add Aydsko.iRacingData --version 0.4.0
#r "nuget: Aydsko.iRacingData, 0.4.0"
// Install Aydsko.iRacingData as a Cake Addin #addin nuget:?package=Aydsko.iRacingData&version=0.4.0 // Install Aydsko.iRacingData as a Cake Tool #tool nuget:?package=Aydsko.iRacingData&version=0.4.0
Aydsko iRacing Data API
iRacing is the leading online racing simulation for PC. During events hosted via the iRacing service there is a large amount of data created related to race results and member participation in events.
This library allows access via .NET to the iRacing "Data API". These APIs allow a properly authenticated user a supported method of accessing data from the service.
Getting Started
Register Services
Register the iRacing Data API client classes with the service provider.
services.AddiRacingDataApi(options =>
{
options.Username = "your-iracing-user@example.com";
options.Password = "Your-iRacing-Password";
options.UserAgentProductName = "MyApplicationName";
options.UserAgentProductVersion = new Version(1, 0);
});
See the "Login Form Changes" thread on iRacing's Forums for full details.
Use the Client
Use the injected iRacingDataClient
to authenticate and request data.
public class ExampleService
{
private readonly IDataClient dataClient;
public ExampleService(IDataClient dataClient)
{
this.dataClient = dataClient;
}
public async Task<MemberInfo> GetMyInfoAsync(CancellationToken cancellationToken = default)
{
var infoResponse = await dataClient.GetMyInfoAsync(cancellationToken);
return infoResponse.Data;
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- Microsoft.Extensions.Http (>= 6.0.0)
- System.Net.Http.Json (>= 6.0.0)
- System.Text.Json (>= 6.0.3)
-
net6.0
- Microsoft.AspNetCore.WebUtilities (>= 2.2.0)
- Microsoft.Extensions.Http (>= 6.0.0)
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 | |
---|---|---|---|
2404.5.0 | 140 | 11/9/2024 | |
2404.5.0-beta | 81 | 11/2/2024 | |
2404.4.0 | 294 | 10/15/2024 | |
2404.3.0 | 94 | 10/10/2024 | |
2404.2.1 | 112 | 9/29/2024 | |
2404.2.0 | 87 | 9/29/2024 | |
2404.0.0 | 246 | 9/9/2024 | |
2403.3.0 | 183 | 9/3/2024 | |
2403.2.0 | 174 | 8/4/2024 | |
2403.1.0 | 194 | 7/2/2024 | |
2403.0.0 | 206 | 6/13/2024 | |
2402.2.0 | 356 | 5/1/2024 | |
2402.1.0 | 132 | 4/20/2024 | |
2304.1.0 | 1,113 | 11/27/2023 | |
2303.1.0 | 643 | 8/2/2023 | |
2303.0.0 | 484 | 6/19/2023 | |
0.10.0 | 249 | 5/4/2023 | |
0.9.2 | 353 | 4/9/2023 | |
0.9.1 | 187 | 4/8/2023 | |
0.9.0 | 281 | 4/7/2023 | |
0.8.0 | 321 | 3/12/2023 | |
0.7.3 | 307 | 2/24/2023 | |
0.7.2 | 306 | 2/9/2023 | |
0.7.1 | 255 | 2/6/2023 | |
0.7.0 | 297 | 12/23/2022 | |
0.6.4 | 499 | 11/27/2022 | |
0.6.3 | 323 | 11/27/2022 | |
0.6.2 | 554 | 10/12/2022 | |
0.6.1 | 430 | 9/28/2022 | |
0.6.0 | 533 | 9/24/2022 | |
0.5.1 | 406 | 9/19/2022 | |
0.5.0 | 438 | 9/11/2022 | |
0.4.1 | 639 | 7/11/2022 | |
0.4.0 | 529 | 7/3/2022 | |
0.3.0 | 451 | 6/1/2022 | |
0.2.0 | 460 | 4/25/2022 | |
0.1.2 | 448 | 4/14/2022 | |
0.1.1 | 452 | 4/9/2022 | |
0.1.0 | 440 | 3/26/2022 | |
0.0.8 | 440 | 3/23/2022 | |
0.0.7 | 438 | 3/5/2022 | |
0.0.6 | 449 | 3/3/2022 | |
0.0.5 | 440 | 2/27/2022 | |
0.0.4 | 458 | 2/24/2022 |
Fixes / Changes:
- Made the new login from iRacing's 2022 Season 3 the default. The "Use2022Season3Login" flag is not obsolete and will be removed in the next release.
- Used "TimeSpan" for duration data on "Results.DriverResult" instead of raw numbers.
- Implemented new endpoints:
- "Categories" and "Event Types" constants
- "Series"
- "Series Assets"
- "Hosted/League Session" search
- "Official Session" search
- "Member Chart Data"
- "League Directory Search"
- Support for new "Track Assets" fields which return map layers.
Contributions:
- From Duncan Watts (https://github.com/DuncWatts):
- Customer Id parameter to "Member Recent Races" query.
- From Dennis Møllegaard Pedersen (https://github.com/dennis):
- Improved naming consistency between "Results.DriverResult" and "Results.Result" classes.
- League Properties on "Results.SubSessionResult" class.
Thanks to Duncan & Dennis for helping out with pull requests to the library!