BaseballSharp 0.1.3-alpha
See the version list below for details.
dotnet add package BaseballSharp --version 0.1.3-alpha
NuGet\Install-Package BaseballSharp -Version 0.1.3-alpha
<PackageReference Include="BaseballSharp" Version="0.1.3-alpha" />
paket add BaseballSharp --version 0.1.3-alpha
#r "nuget: BaseballSharp, 0.1.3-alpha"
// Install BaseballSharp as a Cake Addin #addin nuget:?package=BaseballSharp&version=0.1.3-alpha&prerelease // Install BaseballSharp as a Cake Tool #tool nuget:?package=BaseballSharp&version=0.1.3-alpha&prerelease
Getting Started
Usage
Clone the repository or install from Nuget. Next, import Baseball Sharp into your project with:
using BaseballSharp;
Currently, the MlbApi class contains all the endpoint functionality.
You can also see examples of how to use the endpoint functions in the MLBSharpCli Program.cs file.
Endpoints
Endpoints are limited at the moment, but will be expanding as the library is in active development. The Api Documentation section contains the most up to date endpoints reference.
Schedule(string date)
Returns a list<Schedule>
of containing games played on the specified date. Dates should be specified in mm/DD/yyyy format. Note: This endpoint is still being worked with plans to obtain game ids and other endpoints.
The list contains:
- HomeTeam
- AwayTeam
- BallPark
- Scheduled innings: The number of scheduled innings for the game.
PitchingReports(string date)
Returns a list<PitchingReport>
containing the following information for a specified date (mm/DD/yyyy format):
- HomeTeam
- HomeProbablePitcherName
- HomeProbablePitcherId
- HomeProbablePitcherNotes
- AwayTeam
- AwayProbablePitcherName
- AwayProbablePitcherNotes
- AwayProbablePitcherId
TeamData()
Returns a list<Team>
of all teams in the league. Contains the following information:
- FullName - Full team name, eg: "Toronto Blue Jays"
- Name - Team name, eg: "Blue Jays"
- Location
- Id
- LeagueName
- Division Name
- DivisionId
- Abbreviation
- VenueName
- VenueId
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
-
net5.0
- 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 |
---|---|---|
0.2.1 | 130 | 6/4/2024 |
0.2.0 | 248 | 12/2/2023 |
0.1.9 | 332 | 12/31/2021 |
0.1.8 | 252 | 12/30/2021 |
0.1.7 | 329 | 7/12/2021 |
0.1.6-alpha | 239 | 6/16/2021 |
0.1.5-alpha | 261 | 5/31/2021 |
0.1.4-alpha | 236 | 5/24/2021 |
0.1.3-alpha | 366 | 5/22/2021 |
0.1.2-alpha | 235 | 5/19/2021 |