FantasyData.Api.Client 1.3.0

dotnet add package FantasyData.Api.Client --version 1.3.0                
NuGet\Install-Package FantasyData.Api.Client -Version 1.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FantasyData.Api.Client" Version="1.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FantasyData.Api.Client --version 1.3.0                
#r "nuget: FantasyData.Api.Client, 1.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0 39 9/19/2024
1.2.0 625 4/22/2024
1.1.0 357 4/17/2023
1.0.0 1,102 5/19/2022
0.9.4 470 11/12/2021
0.9.3 358 10/11/2021
0.9.2 415 7/21/2021
0.9.1 439 3/22/2021
0.9.0 717 6/2/2020
0.8.0 582 2/13/2020
0.7.0 708 11/15/2019
0.6.0 1,347 5/8/2019
0.5.1 595 3/4/2019
0.5.0 598 2/22/2019
0.4.3 754 12/6/2018
0.4.2 668 12/6/2018
0.4.1 660 11/23/2018
0.4.0 840 9/7/2018
0.3.0 855 8/16/2018
0.2.1 1,044 3/26/2018
0.2.0 961 3/26/2018
0.1.0 1,036 3/9/2018
0.0.0 1,003 3/3/2018

Updated client to include new basic endpoints and updated data structures.