GithubHelp home page GithubHelp logo

homerolara / fantasydata-api-csharp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fantasydata/fantasydata-api-csharp

1.0 1.0 0.0 4.39 MB

FantasyData API client library wrapper for C#

C# 100.00% Batchfile 0.01%

fantasydata-api-csharp's Introduction

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

fantasydata-api-csharp's People

Contributors

fantasydata avatar neipo13 avatar scottgimpel avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.