FantasyData.Api.Client
1.3.0
See the version list below for details.
dotnet add package FantasyData.Api.Client --version 1.3.0
NuGet\Install-Package FantasyData.Api.Client -Version 1.3.0
<PackageReference Include="FantasyData.Api.Client" Version="1.3.0" />
paket add FantasyData.Api.Client --version 1.3.0
#r "nuget: FantasyData.Api.Client, 1.3.0"
// Install FantasyData.Api.Client as a Cake Addin #addin nuget:?package=FantasyData.Api.Client&version=1.3.0 // Install FantasyData.Api.Client as a Cake Tool #tool nuget:?package=FantasyData.Api.Client&version=1.3.0
fantasydata-api-csharp
FantasyData API client library wrapper for C# (.NET 4.5). For more information on the FantasyData API check the Fantasy Data 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 Fantasy Data Developer Portal. 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 Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has 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 |
---|---|---|
1.3.1 | 114 | 10/29/2024 |
1.3.0 | 117 | 9/19/2024 |
1.2.0 | 880 | 4/22/2024 |
1.1.0 | 375 | 4/17/2023 |
1.0.0 | 1,295 | 5/19/2022 |
0.9.4 | 491 | 11/12/2021 |
0.9.3 | 389 | 10/11/2021 |
0.9.2 | 434 | 7/21/2021 |
0.9.1 | 459 | 3/22/2021 |
0.9.0 | 739 | 6/2/2020 |
0.8.0 | 611 | 2/13/2020 |
0.7.0 | 737 | 11/15/2019 |
0.6.0 | 1,368 | 5/8/2019 |
0.5.1 | 618 | 3/4/2019 |
0.5.0 | 618 | 2/22/2019 |
0.4.3 | 774 | 12/6/2018 |
0.4.2 | 685 | 12/6/2018 |
0.4.1 | 680 | 11/23/2018 |
0.4.0 | 862 | 9/7/2018 |
0.3.0 | 873 | 8/16/2018 |
0.2.1 | 1,066 | 3/26/2018 |
0.2.0 | 982 | 3/26/2018 |
0.1.0 | 1,057 | 3/9/2018 |
0.0.0 | 1,027 | 3/3/2018 |
Updated client to include new basic endpoints and updated data structures.