FantasyData.Api.Client
1.3.1
dotnet add package FantasyData.Api.Client --version 1.3.1
NuGet\Install-Package FantasyData.Api.Client -Version 1.3.1
<PackageReference Include="FantasyData.Api.Client" Version="1.3.1" />
paket add FantasyData.Api.Client --version 1.3.1
#r "nuget: FantasyData.Api.Client, 1.3.1"
// Install FantasyData.Api.Client as a Cake Addin #addin nuget:?package=FantasyData.Api.Client&version=1.3.1 // Install FantasyData.Api.Client as a Cake Tool #tool nuget:?package=FantasyData.Api.Client&version=1.3.1
fantasydata-api-csharp
SportsDataIO API client (formerly branded as FantasyData) library wrapper for C# (.NET 4.5). For more information on the SportsDataIO API check the SportsDataIO Developer Portal.
Installation
This library is distributed on Nuget
. In order to add to your visual studio project, open the nuget package manager console and use the command:
PM> Install-Package FantasyData.Api.Client
Authentication
You can find your API keys in the SportsDataIO API Documentation. See Usage for implementation details.
Usage
In this simple example we authenticate the and MLBv3Projections
client with its respective key. We then pull projections for 2018-03-29
and just output some information to the console. Be sure to replace <license key>
with your API key for this client.
// Connect to client and get data
var client = new MLBv3ProjectionsClient("<license key>");
var projections = client.GetPlayerGameProjectionStatsByDate("2018-03-29").OrderByDescending(p => p.DraftKingsSalary).Take(20).ToList();
// Write data to console
foreach(var projection in projections)
{
Console.WriteLine($"{projection.PlayerID} - {projection.Name} ({projection.DraftKingsPosition}) DraftKings Salary: {projection.DraftKingsSalary}");
}
Documentation
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. net9.0 was computed. 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. |
.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 | net46 is compatible. 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. |
-
.NETFramework 4.6
- Newtonsoft.Json (>= 13.0.1)
- System.Text.Json (>= 6.0.4)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.1)
- System.Text.Json (>= 6.0.4)
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 |
---|---|---|
1.3.1 | 291 | 10/29/2024 |
1.3.0 | 131 | 9/19/2024 |
1.2.0 | 892 | 4/22/2024 |
1.1.0 | 389 | 4/17/2023 |
1.0.0 | 1,418 | 5/19/2022 |
0.9.4 | 502 | 11/12/2021 |
0.9.3 | 400 | 10/11/2021 |
0.9.2 | 445 | 7/21/2021 |
0.9.1 | 471 | 3/22/2021 |
0.9.0 | 751 | 6/2/2020 |
0.8.0 | 622 | 2/13/2020 |
0.7.0 | 748 | 11/15/2019 |
0.6.0 | 1,379 | 5/8/2019 |
0.5.1 | 629 | 3/4/2019 |
0.5.0 | 627 | 2/22/2019 |
0.4.3 | 787 | 12/6/2018 |
0.4.2 | 699 | 12/6/2018 |
0.4.1 | 693 | 11/23/2018 |
0.4.0 | 876 | 9/7/2018 |
0.3.0 | 891 | 8/16/2018 |
0.2.1 | 1,079 | 3/26/2018 |
0.2.0 | 995 | 3/26/2018 |
0.1.0 | 1,070 | 3/9/2018 |
0.0.0 | 1,040 | 3/3/2018 |