Compare commits

...

10 Commits

Author SHA1 Message Date
filifa 4bfec7c12c update name 2025-05-10 13:29:38 -04:00
filifa 7968e0f8cb change type to int 2025-04-08 00:54:15 -04:00
filifa cddcf64dde refactor 2025-04-08 00:52:21 -04:00
filifa d8bc8be4f1 return body in handleUnexpectedClose 2025-04-07 23:25:56 -04:00
filifa 7c18c0a396 bug bashin 2025-04-07 23:12:44 -04:00
filifa de3a09f145 remove git_push script 2025-04-06 23:12:02 -04:00
filifa 4ea313151f update copyright year 2025-04-06 23:06:47 -04:00
filifa 55d69a552e add copyright header 2025-04-06 23:02:50 -04:00
filifa 551b39652b change int32 to int 2025-04-06 22:29:56 -04:00
filifa 003f7b1309 go fmt 2025-04-06 22:14:30 -04:00
81 changed files with 4115 additions and 3164 deletions

View File

@ -1,49 +1,49 @@
# mlblive
mlblive is a CLI tool for retrieving data from Major League Baseball's Stats
# mlbstats
mlbstats is a CLI tool for retrieving data from Major League Baseball's Stats
API, including efficient retrieval of live game data. Unofficial documentation
on the Stats API can be found
[here](https://github.com/toddrob99/MLB-StatsAPI/wiki/Endpoints) (thanks to
GitHub user toddrob99 for this resource).
## Usage
mlblive provides sub-commands to query a subset of the Stats API endpoints. As
mlbstats provides sub-commands to query a subset of the Stats API endpoints. As
of the time of writing, the sub-commands are:
* `mlblive content` (accesses the `game_content` endpoint)
* `mlblive feed` (accesses the `game` endpoint)
* `mlblive schedule` (accesses the `schedule` endpoint)
* `mlblive standings` (accesses the `standings` endpoint)
* `mlblive subscribe` (accesses the game WebSocket endpoint)
* `mlbstats content` (accesses the `game_content` endpoint)
* `mlbstats feed` (accesses the `game` endpoint)
* `mlbstats schedule` (accesses the `schedule` endpoint)
* `mlbstats standings` (accesses the `standings` endpoint)
* `mlbstats subscribe` (accesses the game WebSocket endpoint)
Each sub-command outputs the raw JSON response from the API. This can then be
piped into other commands like `jq` for further processing. See [this
repo](https://scm.dairydemon.net/filifa/mlblive-mastodon-scripts) for examples
of how the author use this program for posting live score updates and
repo](https://scm.dairydemon.net/filifa/mlbstats-mastodon-scripts) for examples
of how the author uses this program for posting live score updates and
highlights to Mastodon.
Note that mlblive does not provide sub-commands for every endpoint, or flags
Note that mlbstats does not provide sub-commands for every endpoint, or flags
for every parameter of every endpoint. The functionality provided was
prioritized based on the author's own needs. However, the author has made every
effort to make the current functionality's code easy to read, and hopes it will
be similarly easy for other developers to extend functionality as needed.
### subscribe sub-command
`mlblive subscribe` provides an efficient way to obtain live data on active MLB
games. Supply the game's PK (which can be retrieved with `mlblive schedule`) to
`mlbstats subscribe` provides an efficient way to obtain live data on active MLB
games. Supply the game's PK (which can be retrieved with `mlbstats schedule`) to
receive updates as they happen, without needing to blindly query the `game`
endpoint.
### Example
Use `mlblive schedule` to get the game PK(s) for today's Reds game:
Use `mlbstats schedule` to get the game PK(s) for today's Reds game:
```
mlblive schedule -t cin
mlbstats schedule -t cin
```
Optionally, use `jq` to filter this output to *just* the game PK(s):
```
mlblive schedule -t cin | jq '.dates[].games[].gamePk'
mlbstats schedule -t cin | jq '.dates[].games[].gamePk'
```
Then, pass a PK to get live updates:
```
mlblive subscribe -g <gamePk>
mlbstats subscribe -g <gamePk>
```
## Disclaimer

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,16 +34,15 @@ import (
"strings"
)
// AnalyticsAPIService AnalyticsAPI service
type AnalyticsAPIService service
type ApiContextMetricsRequest struct {
ctx context.Context
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
guid interface{}
fields *interface{}
gamePk interface{}
guid interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -46,26 +60,26 @@ ContextMetrics Get context metrics for a specific gamePk.
Returns a json file containing raw coordinate data and refined calculated metrics.<br/><br/>This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiContextMetricsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiContextMetricsRequest
*/
func (a *AnalyticsAPIService) ContextMetrics(ctx context.Context, gamePk interface{}, guid interface{}) ApiContextMetricsRequest {
return ApiContextMetricsRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
guid: guid,
ctx: ctx,
gamePk: gamePk,
guid: guid,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) ContextMetricsExecute(r ApiContextMetricsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ContextMetrics")
@ -130,11 +144,11 @@ func (a *AnalyticsAPIService) ContextMetricsExecute(r ApiContextMetricsRequest)
}
type ApiContextMetricsWithAveragesRequest struct {
ctx context.Context
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
guid interface{}
fields *interface{}
gamePk interface{}
guid interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -152,26 +166,26 @@ ContextMetricsWithAverages Get a json file containing raw coordinate data and re
Returns a json file containing raw coordinate data and refined calculated metrics.<br/><br/>This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiContextMetricsWithAveragesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiContextMetricsWithAveragesRequest
*/
func (a *AnalyticsAPIService) ContextMetricsWithAverages(ctx context.Context, gamePk interface{}, guid interface{}) ApiContextMetricsWithAveragesRequest {
return ApiContextMetricsWithAveragesRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
guid: guid,
ctx: ctx,
gamePk: gamePk,
guid: guid,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) ContextMetricsWithAveragesExecute(r ApiContextMetricsWithAveragesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ContextMetricsWithAverages")
@ -236,11 +250,11 @@ func (a *AnalyticsAPIService) ContextMetricsWithAveragesExecute(r ApiContextMetr
}
type ApiContextMetricsWithAveragesPostRequest struct {
ctx context.Context
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
guid interface{}
fields *interface{}
gamePk interface{}
guid interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -258,26 +272,26 @@ ContextMetricsWithAveragesPost Get a json file containing raw coordinate data an
Returns a json file containing raw coordinate data and refined calculated metrics.<br/><br/>This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiContextMetricsWithAveragesPostRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiContextMetricsWithAveragesPostRequest
*/
func (a *AnalyticsAPIService) ContextMetricsWithAveragesPost(ctx context.Context, gamePk interface{}, guid interface{}) ApiContextMetricsWithAveragesPostRequest {
return ApiContextMetricsWithAveragesPostRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
guid: guid,
ctx: ctx,
gamePk: gamePk,
guid: guid,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) ContextMetricsWithAveragesPostExecute(r ApiContextMetricsWithAveragesPostRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ContextMetricsWithAveragesPost")
@ -342,22 +356,22 @@ func (a *AnalyticsAPIService) ContextMetricsWithAveragesPostExecute(r ApiContext
}
type ApiGameGuidsRequest struct {
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
fields *interface{}
gameModeId *interface{}
isPitch *interface{}
isHit *interface{}
isPickoff *interface{}
hasUpdates *interface{}
since *interface{}
updatedSince *interface{}
lastPlayTime *interface{}
lastUpdatedTime *interface{}
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
fields *interface{}
gameModeId *interface{}
isPitch *interface{}
isHit *interface{}
isPickoff *interface{}
hasUpdates *interface{}
since *interface{}
updatedSince *interface{}
lastPlayTime *interface{}
lastUpdatedTime *interface{}
lastMetricsUpdatedTime *interface{}
lastAuditUpdatedTime *interface{}
lastVideoUpdatedTime *interface{}
lastAuditUpdatedTime *interface{}
lastVideoUpdatedTime *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -443,26 +457,26 @@ func (r ApiGameGuidsRequest) Execute() (*http.Response, error) {
}
/*
GameGuids Get the GUIDs (plays) for a specific game.
GameGuids Get the GUIDs (plays) for a specific game.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGameGuidsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGameGuidsRequest
*/
func (a *AnalyticsAPIService) GameGuids(ctx context.Context, gamePk interface{}) ApiGameGuidsRequest {
return ApiGameGuidsRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) GameGuidsExecute(r ApiGameGuidsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameGuids")
@ -562,29 +576,29 @@ func (a *AnalyticsAPIService) GameGuidsExecute(r ApiGameGuidsRequest) (*http.Res
}
type ApiGameGuidsFromPostgresRangeRequest struct {
ctx context.Context
ApiService *AnalyticsAPIService
fields *interface{}
gameModeId *interface{}
isPitch *interface{}
isHit *interface{}
isPickoff *interface{}
isNonStatcast *interface{}
gamedayType *interface{}
hasUpdates *interface{}
lastPlayTime *interface{}
lastUpdatedTime *interface{}
ctx context.Context
ApiService *AnalyticsAPIService
fields *interface{}
gameModeId *interface{}
isPitch *interface{}
isHit *interface{}
isPickoff *interface{}
isNonStatcast *interface{}
gamedayType *interface{}
hasUpdates *interface{}
lastPlayTime *interface{}
lastUpdatedTime *interface{}
lastMetricsUpdatedTime *interface{}
lastAuditUpdatedTime *interface{}
lastVideoUpdatedTime *interface{}
gameDate *interface{}
sportId *interface{}
gameType *interface{}
trackingSystemOwner *interface{}
season *interface{}
sortBy *interface{}
limit *interface{}
offset *interface{}
lastAuditUpdatedTime *interface{}
lastVideoUpdatedTime *interface{}
gameDate *interface{}
sportId *interface{}
gameType *interface{}
trackingSystemOwner *interface{}
season *interface{}
sortBy *interface{}
limit *interface{}
offset *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -718,24 +732,24 @@ func (r ApiGameGuidsFromPostgresRangeRequest) Execute() (*http.Response, error)
}
/*
GameGuidsFromPostgresRange Get the GUIDs (plays) for a specific game.
GameGuidsFromPostgresRange Get the GUIDs (plays) for a specific game.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameGuidsFromPostgresRangeRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameGuidsFromPostgresRangeRequest
*/
func (a *AnalyticsAPIService) GameGuidsFromPostgresRange(ctx context.Context) ApiGameGuidsFromPostgresRangeRequest {
return ApiGameGuidsFromPostgresRangeRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeExecute(r ApiGameGuidsFromPostgresRangeRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameGuidsFromPostgresRange")
@ -858,30 +872,30 @@ func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeExecute(r ApiGameGuidsFr
}
type ApiGameGuidsFromPostgresRangeByGameRequest struct {
ctx context.Context
ApiService *AnalyticsAPIService
fields *interface{}
gameModeId *interface{}
isPitch *interface{}
isHit *interface{}
isPickoff *interface{}
isNonStatcast *interface{}
gamedayType *interface{}
hasUpdates *interface{}
lastPlayTime *interface{}
lastVideoUpdatedTime *interface{}
lastUpdatedTime *interface{}
ctx context.Context
ApiService *AnalyticsAPIService
fields *interface{}
gameModeId *interface{}
isPitch *interface{}
isHit *interface{}
isPickoff *interface{}
isNonStatcast *interface{}
gamedayType *interface{}
hasUpdates *interface{}
lastPlayTime *interface{}
lastVideoUpdatedTime *interface{}
lastUpdatedTime *interface{}
lastMetricsUpdatedTime *interface{}
lastAuditUpdatedTime *interface{}
gameDate *interface{}
sportId *interface{}
gameType *interface{}
season *interface{}
trackingSystemOwner *interface{}
sortBy *interface{}
limit *interface{}
offset *interface{}
scheduleEventTypes *interface{}
lastAuditUpdatedTime *interface{}
gameDate *interface{}
sportId *interface{}
gameType *interface{}
season *interface{}
trackingSystemOwner *interface{}
sortBy *interface{}
limit *interface{}
offset *interface{}
scheduleEventTypes *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -1023,22 +1037,22 @@ func (r ApiGameGuidsFromPostgresRangeByGameRequest) Execute() (*http.Response, e
/*
GameGuidsFromPostgresRangeByGame Get all games by updated date.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameGuidsFromPostgresRangeByGameRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameGuidsFromPostgresRangeByGameRequest
*/
func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeByGame(ctx context.Context) ApiGameGuidsFromPostgresRangeByGameRequest {
return ApiGameGuidsFromPostgresRangeByGameRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeByGameExecute(r ApiGameGuidsFromPostgresRangeByGameRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameGuidsFromPostgresRangeByGame")
@ -1164,10 +1178,10 @@ func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeByGameExecute(r ApiGameG
}
type ApiGameLastPitchRequest struct {
ctx context.Context
ctx context.Context
ApiService *AnalyticsAPIService
gamePks *interface{}
fields *interface{}
gamePks *interface{}
fields *interface{}
}
// Unique Primary Key Representing a Game
@ -1189,22 +1203,22 @@ func (r ApiGameLastPitchRequest) Execute() (*http.Response, error) {
/*
GameLastPitch Get the last pitch for a list of games
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameLastPitchRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGameLastPitchRequest
*/
func (a *AnalyticsAPIService) GameLastPitch(ctx context.Context) ApiGameLastPitchRequest {
return ApiGameLastPitchRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) GameLastPitchExecute(r ApiGameLastPitchRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameLastPitch")
@ -1271,12 +1285,12 @@ func (a *AnalyticsAPIService) GameLastPitchExecute(r ApiGameLastPitchRequest) (*
}
type ApiHomeRunBallparksRequest struct {
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
guid interface{}
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
guid interface{}
isHomeRunParks *interface{}
fields *interface{}
fields *interface{}
}
func (r ApiHomeRunBallparksRequest) IsHomeRunParks(isHomeRunParks interface{}) ApiHomeRunBallparksRequest {
@ -1299,26 +1313,26 @@ HomeRunBallparks Get if the play is a home run is each park for a specific play.
Returns a json file containing raw coordinate data and refined calculated metrics.<br/><br/>This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiHomeRunBallparksRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiHomeRunBallparksRequest
*/
func (a *AnalyticsAPIService) HomeRunBallparks(ctx context.Context, gamePk interface{}, guid interface{}) ApiHomeRunBallparksRequest {
return ApiHomeRunBallparksRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
guid: guid,
ctx: ctx,
gamePk: gamePk,
guid: guid,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) HomeRunBallparksExecute(r ApiHomeRunBallparksRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.HomeRunBallparks")
@ -1387,11 +1401,11 @@ func (a *AnalyticsAPIService) HomeRunBallparksExecute(r ApiHomeRunBallparksReque
}
type ApiParsedJsonFormattedAnalyticsRequest struct {
ctx context.Context
ctx context.Context
ApiService *AnalyticsAPIService
gamePk interface{}
guid interface{}
fields *interface{}
gamePk interface{}
guid interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -1409,26 +1423,26 @@ ParsedJsonFormattedAnalytics Get Statcast data for a specific play.
Returns a json file containing raw coordinate data and refined calculated metrics.<br/><br/>This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiParsedJsonFormattedAnalyticsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param guid Unique identifier for a play within a game
@return ApiParsedJsonFormattedAnalyticsRequest
*/
func (a *AnalyticsAPIService) ParsedJsonFormattedAnalytics(ctx context.Context, gamePk interface{}, guid interface{}) ApiParsedJsonFormattedAnalyticsRequest {
return ApiParsedJsonFormattedAnalyticsRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
guid: guid,
ctx: ctx,
gamePk: gamePk,
guid: guid,
}
}
// Execute executes the request
func (a *AnalyticsAPIService) ParsedJsonFormattedAnalyticsExecute(r ApiParsedJsonFormattedAnalyticsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ParsedJsonFormattedAnalytics")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,22 +33,21 @@ import (
"net/url"
)
// AttendanceAPIService AttendanceAPI service
type AttendanceAPIService service
type ApiGetTeamAttendanceRequest struct {
ctx context.Context
ApiService *AttendanceAPIService
teamId *interface{}
leagueId *interface{}
season *interface{}
ctx context.Context
ApiService *AttendanceAPIService
teamId *interface{}
leagueId *interface{}
season *interface{}
leagueListId *interface{}
gameType *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
fields *interface{}
gameType *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
fields *interface{}
}
// Unique Team Identifier. Format: 141, 147, etc
@ -97,22 +111,22 @@ func (r ApiGetTeamAttendanceRequest) Execute() (*http.Response, error) {
/*
GetTeamAttendance Get team attendance
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetTeamAttendanceRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetTeamAttendanceRequest
*/
func (a *AttendanceAPIService) GetTeamAttendance(ctx context.Context) ApiGetTeamAttendanceRequest {
return ApiGetTeamAttendanceRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *AttendanceAPIService) GetTeamAttendanceExecute(r ApiGetTeamAttendanceRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttendanceAPIService.GetTeamAttendance")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,18 +34,17 @@ import (
"strings"
)
// AwardsAPIService AwardsAPI service
type AwardsAPIService service
type ApiAwardRecipientsRequest struct {
ctx context.Context
ctx context.Context
ApiService *AwardsAPIService
awardId interface{}
season *interface{}
sportId *interface{}
leagueId *interface{}
fields *interface{}
awardId interface{}
season *interface{}
sportId *interface{}
leagueId *interface{}
fields *interface{}
}
// Season of play
@ -63,24 +77,24 @@ func (r ApiAwardRecipientsRequest) Execute() (*http.Response, error) {
/*
AwardRecipients View recipients of an award
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param awardId Unique Award Identifier. Available awards in /api/v1/awards
@return ApiAwardRecipientsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param awardId Unique Award Identifier. Available awards in /api/v1/awards
@return ApiAwardRecipientsRequest
*/
func (a *AwardsAPIService) AwardRecipients(ctx context.Context, awardId interface{}) ApiAwardRecipientsRequest {
return ApiAwardRecipientsRequest{
ApiService: a,
ctx: ctx,
awardId: awardId,
ctx: ctx,
awardId: awardId,
}
}
// Execute executes the request
func (a *AwardsAPIService) AwardRecipientsExecute(r ApiAwardRecipientsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AwardsAPIService.AwardRecipients")
@ -153,11 +167,11 @@ func (a *AwardsAPIService) AwardRecipientsExecute(r ApiAwardRecipientsRequest) (
}
type ApiAwardsRequest struct {
ctx context.Context
ctx context.Context
ApiService *AwardsAPIService
awardId interface{}
orgId *interface{}
fields *interface{}
awardId interface{}
orgId *interface{}
fields *interface{}
}
// Comma delimited list of top level organizations of a sport
@ -179,24 +193,24 @@ func (r ApiAwardsRequest) Execute() (*http.Response, error) {
/*
Awards View awards info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param awardId Unique Award Identifier. Available awards in /api/v1/awards
@return ApiAwardsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param awardId Unique Award Identifier. Available awards in /api/v1/awards
@return ApiAwardsRequest
*/
func (a *AwardsAPIService) Awards(ctx context.Context, awardId interface{}) ApiAwardsRequest {
return ApiAwardsRequest{
ApiService: a,
ctx: ctx,
awardId: awardId,
ctx: ctx,
awardId: awardId,
}
}
// Execute executes the request
func (a *AwardsAPIService) AwardsExecute(r ApiAwardsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AwardsAPIService.Awards")
@ -263,11 +277,11 @@ func (a *AwardsAPIService) AwardsExecute(r ApiAwardsRequest) (*http.Response, er
}
type ApiAwards1Request struct {
ctx context.Context
ctx context.Context
ApiService *AwardsAPIService
awardId interface{}
orgId *interface{}
fields *interface{}
awardId interface{}
orgId *interface{}
fields *interface{}
}
// Comma delimited list of top level organizations of a sport
@ -289,24 +303,24 @@ func (r ApiAwards1Request) Execute() (*http.Response, error) {
/*
Awards1 View awards info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param awardId Unique Award Identifier. Available awards in /api/v1/awards
@return ApiAwards1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param awardId Unique Award Identifier. Available awards in /api/v1/awards
@return ApiAwards1Request
*/
func (a *AwardsAPIService) Awards1(ctx context.Context, awardId interface{}) ApiAwards1Request {
return ApiAwards1Request{
ApiService: a,
ctx: ctx,
awardId: awardId,
ctx: ctx,
awardId: awardId,
}
}
// Execute executes the request
func (a *AwardsAPIService) Awards1Execute(r ApiAwards1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AwardsAPIService.Awards1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,16 +34,15 @@ import (
"strings"
)
// BatTrackingAPIService BatTrackingAPI service
type BatTrackingAPIService service
type ApiBatTrackingRequest struct {
ctx context.Context
ctx context.Context
ApiService *BatTrackingAPIService
gamePk interface{}
playId interface{}
fields *interface{}
gamePk interface{}
playId interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -46,26 +60,26 @@ BatTracking View Bat Tracking Data by playId and gameId
This endpoint allows you to pull bat tracking data by gameId and playId
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@return ApiBatTrackingRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@return ApiBatTrackingRequest
*/
func (a *BatTrackingAPIService) BatTracking(ctx context.Context, gamePk interface{}, playId interface{}) ApiBatTrackingRequest {
return ApiBatTrackingRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
playId: playId,
ctx: ctx,
gamePk: gamePk,
playId: playId,
}
}
// Execute executes the request
func (a *BatTrackingAPIService) BatTrackingExecute(r ApiBatTrackingRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BatTrackingAPIService.BatTracking")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,17 +34,16 @@ import (
"strings"
)
// BiomechanicsAPIService BiomechanicsAPI service
type BiomechanicsAPIService service
type ApiBiomechanicalRequest struct {
ctx context.Context
ctx context.Context
ApiService *BiomechanicsAPIService
gamePk interface{}
playId interface{}
gamePk interface{}
playId interface{}
positionId interface{}
fields *interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -47,18 +61,18 @@ Biomechanical View Biomechanical data by playId and gameId filtered by player po
This endpoint allows you to pull biomechanical tracking data by gameId and playId filtered by player positionId
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@param positionId Position number. Format: 1, 2, 3, etc
@return ApiBiomechanicalRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@param positionId Position number. Format: 1, 2, 3, etc
@return ApiBiomechanicalRequest
*/
func (a *BiomechanicsAPIService) Biomechanical(ctx context.Context, gamePk interface{}, playId interface{}, positionId interface{}) ApiBiomechanicalRequest {
return ApiBiomechanicalRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
playId: playId,
ctx: ctx,
gamePk: gamePk,
playId: playId,
positionId: positionId,
}
}
@ -66,9 +80,9 @@ func (a *BiomechanicsAPIService) Biomechanical(ctx context.Context, gamePk inter
// Execute executes the request
func (a *BiomechanicsAPIService) BiomechanicalExecute(r ApiBiomechanicalRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BiomechanicsAPIService.Biomechanical")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,15 +33,14 @@ import (
"net/url"
)
// BroadcastAPIService BroadcastAPI service
type BroadcastAPIService service
type ApiGetAllBroadcastersRequest struct {
ctx context.Context
ApiService *BroadcastAPIService
ctx context.Context
ApiService *BroadcastAPIService
activeStatus *interface{}
fields *interface{}
fields *interface{}
}
// Current status of the broadcaster. Format: Active &#x3D; y, inactive &#x3D; n, both &#x3D; b
@ -48,22 +62,22 @@ func (r ApiGetAllBroadcastersRequest) Execute() (*http.Response, error) {
/*
GetAllBroadcasters Get All Active Broadcasters
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllBroadcastersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAllBroadcastersRequest
*/
func (a *BroadcastAPIService) GetAllBroadcasters(ctx context.Context) ApiGetAllBroadcastersRequest {
return ApiGetAllBroadcastersRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *BroadcastAPIService) GetAllBroadcastersExecute(r ApiGetAllBroadcastersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BroadcastAPIService.GetAllBroadcasters")
@ -129,10 +143,10 @@ func (a *BroadcastAPIService) GetAllBroadcastersExecute(r ApiGetAllBroadcastersR
}
type ApiGetBroadcastsRequest struct {
ctx context.Context
ApiService *BroadcastAPIService
ctx context.Context
ApiService *BroadcastAPIService
broadcasterIds *interface{}
fields *interface{}
fields *interface{}
}
// All of the broadcast details
@ -154,22 +168,22 @@ func (r ApiGetBroadcastsRequest) Execute() (*http.Response, error) {
/*
GetBroadcasts Get Broadcasters
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetBroadcastsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetBroadcastsRequest
*/
func (a *BroadcastAPIService) GetBroadcasts(ctx context.Context) ApiGetBroadcastsRequest {
return ApiGetBroadcastsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *BroadcastAPIService) GetBroadcastsExecute(r ApiGetBroadcastsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BroadcastAPIService.GetBroadcasts")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,17 +34,16 @@ import (
"strings"
)
// ConferenceAPIService ConferenceAPI service
type ConferenceAPIService service
type ApiConferencesRequest struct {
ctx context.Context
ApiService *ConferenceAPIService
conferenceId interface{}
season *interface{}
ctx context.Context
ApiService *ConferenceAPIService
conferenceId interface{}
season *interface{}
includeInactive *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -56,14 +70,14 @@ func (r ApiConferencesRequest) Execute() (*http.Response, error) {
/*
Conferences View conference info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param conferenceId
@return ApiConferencesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param conferenceId
@return ApiConferencesRequest
*/
func (a *ConferenceAPIService) Conferences(ctx context.Context, conferenceId interface{}) ApiConferencesRequest {
return ApiConferencesRequest{
ApiService: a,
ctx: ctx,
ApiService: a,
ctx: ctx,
conferenceId: conferenceId,
}
}
@ -71,9 +85,9 @@ func (a *ConferenceAPIService) Conferences(ctx context.Context, conferenceId int
// Execute executes the request
func (a *ConferenceAPIService) ConferencesExecute(r ApiConferencesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConferenceAPIService.Conferences")
@ -143,12 +157,12 @@ func (a *ConferenceAPIService) ConferencesExecute(r ApiConferencesRequest) (*htt
}
type ApiConferences1Request struct {
ctx context.Context
ApiService *ConferenceAPIService
conferenceId interface{}
season *interface{}
ctx context.Context
ApiService *ConferenceAPIService
conferenceId interface{}
season *interface{}
includeInactive *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -175,14 +189,14 @@ func (r ApiConferences1Request) Execute() (*http.Response, error) {
/*
Conferences1 View conference info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param conferenceId
@return ApiConferences1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param conferenceId
@return ApiConferences1Request
*/
func (a *ConferenceAPIService) Conferences1(ctx context.Context, conferenceId interface{}) ApiConferences1Request {
return ApiConferences1Request{
ApiService: a,
ctx: ctx,
ApiService: a,
ctx: ctx,
conferenceId: conferenceId,
}
}
@ -190,9 +204,9 @@ func (a *ConferenceAPIService) Conferences1(ctx context.Context, conferenceId in
// Execute executes the request
func (a *ConferenceAPIService) Conferences1Execute(r ApiConferences1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConferenceAPIService.Conferences1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,19 +34,18 @@ import (
"strings"
)
// DivisionAPIService DivisionAPI service
type DivisionAPIService service
type ApiDivisionsRequest struct {
ctx context.Context
ApiService *DivisionAPIService
divisionId interface{}
ctx context.Context
ApiService *DivisionAPIService
divisionId interface{}
includeInactive *interface{}
leagueId *interface{}
sportId *interface{}
season *interface{}
fields *interface{}
leagueId *interface{}
sportId *interface{}
season *interface{}
fields *interface{}
}
// Whether or not to include inactive
@ -73,14 +87,14 @@ Divisions Get division information
This endpoint allows you to pull divisions
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param divisionId Unique Division Identifier
@return ApiDivisionsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param divisionId Unique Division Identifier
@return ApiDivisionsRequest
*/
func (a *DivisionAPIService) Divisions(ctx context.Context, divisionId interface{}) ApiDivisionsRequest {
return ApiDivisionsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
divisionId: divisionId,
}
}
@ -88,9 +102,9 @@ func (a *DivisionAPIService) Divisions(ctx context.Context, divisionId interface
// Execute executes the request
func (a *DivisionAPIService) DivisionsExecute(r ApiDivisionsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DivisionAPIService.Divisions")
@ -166,14 +180,14 @@ func (a *DivisionAPIService) DivisionsExecute(r ApiDivisionsRequest) (*http.Resp
}
type ApiDivisions1Request struct {
ctx context.Context
ApiService *DivisionAPIService
divisionId interface{}
ctx context.Context
ApiService *DivisionAPIService
divisionId interface{}
includeInactive *interface{}
leagueId *interface{}
sportId *interface{}
season *interface{}
fields *interface{}
leagueId *interface{}
sportId *interface{}
season *interface{}
fields *interface{}
}
// Whether or not to include inactive
@ -215,14 +229,14 @@ Divisions1 Get division information
This endpoint allows you to pull divisions
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param divisionId Unique Division Identifier
@return ApiDivisions1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param divisionId Unique Division Identifier
@return ApiDivisions1Request
*/
func (a *DivisionAPIService) Divisions1(ctx context.Context, divisionId interface{}) ApiDivisions1Request {
return ApiDivisions1Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
divisionId: divisionId,
}
}
@ -230,9 +244,9 @@ func (a *DivisionAPIService) Divisions1(ctx context.Context, divisionId interfac
// Execute executes the request
func (a *DivisionAPIService) Divisions1Execute(r ApiDivisions1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DivisionAPIService.Divisions1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,29 +34,28 @@ import (
"strings"
)
// DraftAPIService DraftAPI service
type DraftAPIService service
type ApiDraftPicksRequest struct {
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
bisPlayerId *interface{}
}
@ -148,24 +162,24 @@ func (r ApiDraftPicksRequest) Execute() (*http.Response, error) {
/*
DraftPicks View MLB Drafted Players
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftPicksRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftPicksRequest
*/
func (a *DraftAPIService) DraftPicks(ctx context.Context, year interface{}) ApiDraftPicksRequest {
return ApiDraftPicksRequest{
ApiService: a,
ctx: ctx,
year: year,
ctx: ctx,
year: year,
}
}
// Execute executes the request
func (a *DraftAPIService) DraftPicksExecute(r ApiDraftPicksRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftPicks")
@ -274,24 +288,24 @@ func (a *DraftAPIService) DraftPicksExecute(r ApiDraftPicksRequest) (*http.Respo
}
type ApiDraftPicks1Request struct {
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
bisPlayerId *interface{}
}
@ -398,24 +412,24 @@ func (r ApiDraftPicks1Request) Execute() (*http.Response, error) {
/*
DraftPicks1 View MLB Drafted Players
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftPicks1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftPicks1Request
*/
func (a *DraftAPIService) DraftPicks1(ctx context.Context, year interface{}) ApiDraftPicks1Request {
return ApiDraftPicks1Request{
ApiService: a,
ctx: ctx,
year: year,
ctx: ctx,
year: year,
}
}
// Execute executes the request
func (a *DraftAPIService) DraftPicks1Execute(r ApiDraftPicks1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftPicks1")
@ -524,24 +538,24 @@ func (a *DraftAPIService) DraftPicks1Execute(r ApiDraftPicks1Request) (*http.Res
}
type ApiDraftProspectsRequest struct {
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
bisPlayerId *interface{}
}
@ -648,24 +662,24 @@ func (r ApiDraftProspectsRequest) Execute() (*http.Response, error) {
/*
DraftProspects View MLB Draft Prospects
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftProspectsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftProspectsRequest
*/
func (a *DraftAPIService) DraftProspects(ctx context.Context, year interface{}) ApiDraftProspectsRequest {
return ApiDraftProspectsRequest{
ApiService: a,
ctx: ctx,
year: year,
ctx: ctx,
year: year,
}
}
// Execute executes the request
func (a *DraftAPIService) DraftProspectsExecute(r ApiDraftProspectsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftProspects")
@ -774,24 +788,24 @@ func (a *DraftAPIService) DraftProspectsExecute(r ApiDraftProspectsRequest) (*ht
}
type ApiDraftProspects1Request struct {
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
ctx context.Context
ApiService *DraftAPIService
year interface{}
limit *interface{}
offset *interface{}
fields *interface{}
order *interface{}
sortBy *interface{}
drafted *interface{}
round *interface{}
name *interface{}
school *interface{}
position *interface{}
team *interface{}
teamId *interface{}
state *interface{}
country *interface{}
playerId *interface{}
bisPlayerId *interface{}
}
@ -898,24 +912,24 @@ func (r ApiDraftProspects1Request) Execute() (*http.Response, error) {
/*
DraftProspects1 View MLB Draft Prospects
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftProspects1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiDraftProspects1Request
*/
func (a *DraftAPIService) DraftProspects1(ctx context.Context, year interface{}) ApiDraftProspects1Request {
return ApiDraftProspects1Request{
ApiService: a,
ctx: ctx,
year: year,
ctx: ctx,
year: year,
}
}
// Execute executes the request
func (a *DraftAPIService) DraftProspects1Execute(r ApiDraftProspects1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftProspects1")
@ -1024,10 +1038,10 @@ func (a *DraftAPIService) DraftProspects1Execute(r ApiDraftProspects1Request) (*
}
type ApiLatestDraftPicksRequest struct {
ctx context.Context
ctx context.Context
ApiService *DraftAPIService
year interface{}
fields *interface{}
year interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -1043,24 +1057,24 @@ func (r ApiLatestDraftPicksRequest) Execute() (*http.Response, error) {
/*
LatestDraftPicks Get the last drafted player and the next 5 teams up to pick
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiLatestDraftPicksRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param year Year the player was drafted. Format: 2000
@return ApiLatestDraftPicksRequest
*/
func (a *DraftAPIService) LatestDraftPicks(ctx context.Context, year interface{}) ApiLatestDraftPicksRequest {
return ApiLatestDraftPicksRequest{
ApiService: a,
ctx: ctx,
year: year,
ctx: ctx,
year: year,
}
}
// Execute executes the request
func (a *DraftAPIService) LatestDraftPicksExecute(r ApiLatestDraftPicksRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.LatestDraftPicks")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,20 +34,19 @@ import (
"strings"
)
// GameAPIService GameAPI service
type GameAPIService service
type ApiBoxscoreRequest struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
inclusiveTimecode *interface{}
numPlayers *interface{}
noTies *interface{}
accent *interface{}
numPlayers *interface{}
noTies *interface{}
accent *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -80,24 +94,24 @@ Boxscore Get game boxscore.
This endpoint allows you to pull a boxscore
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiBoxscoreRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiBoxscoreRequest
*/
func (a *GameAPIService) Boxscore(ctx context.Context, gamePk interface{}) ApiBoxscoreRequest {
return ApiBoxscoreRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) BoxscoreExecute(r ApiBoxscoreRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.Boxscore")
@ -176,11 +190,11 @@ func (a *GameAPIService) BoxscoreExecute(r ApiBoxscoreRequest) (*http.Response,
}
type ApiColorFeedRequest struct {
ctx context.Context
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
gamePk interface{}
timecode *interface{}
fields *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -204,24 +218,24 @@ ColorFeed Get game color feed.
This API can return very large payloads. It is STRONGLY recommended that clients ask for diffs and use "Accept-Encoding: gzip" header.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiColorFeedRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiColorFeedRequest
*/
func (a *GameAPIService) ColorFeed(ctx context.Context, gamePk interface{}) ApiColorFeedRequest {
return ApiColorFeedRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) ColorFeedExecute(r ApiColorFeedRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.ColorFeed")
@ -288,9 +302,9 @@ func (a *GameAPIService) ColorFeedExecute(r ApiColorFeedRequest) (*http.Response
}
type ApiColorTimestampsRequest struct {
ctx context.Context
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
gamePk interface{}
}
func (r ApiColorTimestampsRequest) Execute() (*http.Response, error) {
@ -302,24 +316,24 @@ ColorTimestamps Retrieve all of the color timestamps for a game.
This can be used for replaying games. Endpoint returns all of the timecodes that can be used with diffs for /v1/game/{game_pk}/feed/color
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiColorTimestampsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiColorTimestampsRequest
*/
func (a *GameAPIService) ColorTimestamps(ctx context.Context, gamePk interface{}) ApiColorTimestampsRequest {
return ApiColorTimestampsRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) ColorTimestampsExecute(r ApiColorTimestampsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.ColorTimestamps")
@ -380,9 +394,9 @@ func (a *GameAPIService) ColorTimestampsExecute(r ApiColorTimestampsRequest) (*h
}
type ApiContentRequest struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
highlightLimit *interface{}
}
@ -399,24 +413,24 @@ func (r ApiContentRequest) Execute() (*http.Response, error) {
/*
Content Retrieve all content for a game.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk
@return ApiContentRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk
@return ApiContentRequest
*/
func (a *GameAPIService) Content(ctx context.Context, gamePk interface{}) ApiContentRequest {
return ApiContentRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) ContentExecute(r ApiContentRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.Content")
@ -480,18 +494,18 @@ func (a *GameAPIService) ContentExecute(r ApiContentRequest) (*http.Response, er
}
type ApiCurrentGameStats1Request struct {
ctx context.Context
ApiService *GameAPIService
ctx context.Context
ApiService *GameAPIService
updatedSince *interface{}
sportId *interface{}
sportIds *interface{}
gameType *interface{}
gameTypes *interface{}
season *interface{}
gamePks *interface{}
limit *interface{}
offset *interface{}
fields *interface{}
sportId *interface{}
sportIds *interface{}
gameType *interface{}
gameTypes *interface{}
season *interface{}
gamePks *interface{}
limit *interface{}
offset *interface{}
fields *interface{}
}
// Format: YYYY-MM-DDTHH:MM:SSZ
@ -561,22 +575,22 @@ func (r ApiCurrentGameStats1Request) Execute() (*http.Response, error) {
/*
CurrentGameStats1 View a game change log
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCurrentGameStats1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCurrentGameStats1Request
*/
func (a *GameAPIService) CurrentGameStats1(ctx context.Context) ApiCurrentGameStats1Request {
return ApiCurrentGameStats1Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *GameAPIService) CurrentGameStats1Execute(r ApiCurrentGameStats1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.CurrentGameStats1")
@ -666,11 +680,11 @@ func (a *GameAPIService) CurrentGameStats1Execute(r ApiCurrentGameStats1Request)
}
type ApiGetGameContextMetricsRequest struct {
ctx context.Context
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
gamePk interface{}
timecode *interface{}
fields *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -692,24 +706,24 @@ func (r ApiGetGameContextMetricsRequest) Execute() (*http.Response, error) {
/*
GetGameContextMetrics Get the context metrics for this game based on its current state
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGetGameContextMetricsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGetGameContextMetricsRequest
*/
func (a *GameAPIService) GetGameContextMetrics(ctx context.Context, gamePk interface{}) ApiGetGameContextMetricsRequest {
return ApiGetGameContextMetricsRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) GetGameContextMetricsExecute(r ApiGetGameContextMetricsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.GetGameContextMetrics")
@ -776,13 +790,13 @@ func (a *GameAPIService) GetGameContextMetricsExecute(r ApiGetGameContextMetrics
}
type ApiGetGameWithMetricsRequest struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
inclusiveTimecode *interface{}
fields *interface{}
accent *interface{}
fields *interface{}
accent *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -816,24 +830,24 @@ func (r ApiGetGameWithMetricsRequest) Execute() (*http.Response, error) {
/*
GetGameWithMetrics Get game info with metrics
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGetGameWithMetricsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGetGameWithMetricsRequest
*/
func (a *GameAPIService) GetGameWithMetrics(ctx context.Context, gamePk interface{}) ApiGetGameWithMetricsRequest {
return ApiGetGameWithMetricsRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) GetGameWithMetricsExecute(r ApiGetGameWithMetricsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.GetGameWithMetrics")
@ -906,13 +920,13 @@ func (a *GameAPIService) GetGameWithMetricsExecute(r ApiGetGameWithMetricsReques
}
type ApiGetWinProbabilityRequest struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
inclusiveTimecode *interface{}
accent *interface{}
accent *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -946,24 +960,24 @@ func (r ApiGetWinProbabilityRequest) Execute() (*http.Response, error) {
/*
GetWinProbability Get the win probability for this game
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGetWinProbabilityRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiGetWinProbabilityRequest
*/
func (a *GameAPIService) GetWinProbability(ctx context.Context, gamePk interface{}) ApiGetWinProbabilityRequest {
return ApiGetWinProbabilityRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) GetWinProbabilityExecute(r ApiGetWinProbabilityRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.GetWinProbability")
@ -1036,11 +1050,11 @@ func (a *GameAPIService) GetWinProbabilityExecute(r ApiGetWinProbabilityRequest)
}
type ApiLinescoreRequest struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
inclusiveTimecode *interface{}
}
@ -1071,24 +1085,24 @@ Linescore Get game linescore
This endpoint allows you to pull the linescore for a game
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLinescoreRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLinescoreRequest
*/
func (a *GameAPIService) Linescore(ctx context.Context, gamePk interface{}) ApiLinescoreRequest {
return ApiLinescoreRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) LinescoreExecute(r ApiLinescoreRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.Linescore")
@ -1158,12 +1172,12 @@ func (a *GameAPIService) LinescoreExecute(r ApiLinescoreRequest) (*http.Response
}
type ApiLiveGameDiffPatchV1Request struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
startTimecode *interface{}
endTimecode *interface{}
accent *interface{}
endTimecode *interface{}
accent *interface{}
}
// Start time code will give you everything since that time. Format: MMDDYYYY_HHMMSS
@ -1193,24 +1207,24 @@ LiveGameDiffPatchV1 Get live game status diffPatch.
This endpoint allows comparison of game files and shows any differences/discrepancies between the two<br/><br/><b>Diff/Patch System:</b> startTimecode and endTimecode can be used for getting diffs.<br/>Expected usage: <br/> 1) Request full payload by not passing startTimecode or endTimecode. This will return the most recent game state.<br/> 2) Find the latest timecode in this response. <br/> 3) Wait X seconds<br/> 4) Use the timecode from 2 as the startTimecode. This will give you a diff of everything that has happened since startTimecode. <br/> 5) If no data is returned, wait X seconds and do the same request. <br/> 6) If data is returned, get a new timeStamp from the response, and use that for the next call as startTimecode.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLiveGameDiffPatchV1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLiveGameDiffPatchV1Request
*/
func (a *GameAPIService) LiveGameDiffPatchV1(ctx context.Context, gamePk interface{}) ApiLiveGameDiffPatchV1Request {
return ApiLiveGameDiffPatchV1Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) LiveGameDiffPatchV1Execute(r ApiLiveGameDiffPatchV1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.LiveGameDiffPatchV1")
@ -1280,13 +1294,13 @@ func (a *GameAPIService) LiveGameDiffPatchV1Execute(r ApiLiveGameDiffPatchV1Requ
}
type ApiLiveGameV1Request struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
inclusiveTimecode *interface{}
accent *interface{}
accent *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -1322,24 +1336,24 @@ LiveGameV1 Get live game status.
This API can return very large payloads. It is STRONGLY recommended that clients ask for diffs and use "Accept-Encoding: gzip" header.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLiveGameV1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLiveGameV1Request
*/
func (a *GameAPIService) LiveGameV1(ctx context.Context, gamePk interface{}) ApiLiveGameV1Request {
return ApiLiveGameV1Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) LiveGameV1Execute(r ApiLiveGameV1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.LiveGameV1")
@ -1412,9 +1426,9 @@ func (a *GameAPIService) LiveGameV1Execute(r ApiLiveGameV1Request) (*http.Respon
}
type ApiLiveTimestampv11Request struct {
ctx context.Context
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
gamePk interface{}
}
func (r ApiLiveTimestampv11Request) Execute() (*http.Response, error) {
@ -1426,24 +1440,24 @@ LiveTimestampv11 Retrieve all of the play timestamps for a game.
This can be used for replaying games. Endpoint returns all of the timecodes that can be used with diffs for /v1/game/{game_pk}/feed/live
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLiveTimestampv11Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiLiveTimestampv11Request
*/
func (a *GameAPIService) LiveTimestampv11(ctx context.Context, gamePk interface{}) ApiLiveTimestampv11Request {
return ApiLiveTimestampv11Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) LiveTimestampv11Execute(r ApiLiveTimestampv11Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.LiveTimestampv11")
@ -1504,13 +1518,13 @@ func (a *GameAPIService) LiveTimestampv11Execute(r ApiLiveTimestampv11Request) (
}
type ApiPlayByPlayRequest struct {
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
ctx context.Context
ApiService *GameAPIService
gamePk interface{}
timecode *interface{}
fields *interface{}
inclusiveTimecode *interface{}
accent *interface{}
accent *interface{}
}
// Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS
@ -1546,24 +1560,24 @@ PlayByPlay Get game play By Play
This endpoint allows you to pull the play by play of a game
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiPlayByPlayRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiPlayByPlayRequest
*/
func (a *GameAPIService) PlayByPlay(ctx context.Context, gamePk interface{}) ApiPlayByPlayRequest {
return ApiPlayByPlayRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *GameAPIService) PlayByPlayExecute(r ApiPlayByPlayRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.PlayByPlay")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,30 +33,29 @@ import (
"net/url"
)
// GamePaceAPIService GamePaceAPI service
type GamePaceAPIService service
type ApiGamePaceRequest struct {
ctx context.Context
ApiService *GamePaceAPIService
season *interface{}
teamId *interface{}
teamIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
sportId *interface{}
sportIds *interface{}
gameType *interface{}
startDate *interface{}
endDate *interface{}
venueIds *interface{}
ctx context.Context
ApiService *GamePaceAPIService
season *interface{}
teamId *interface{}
teamIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
sportId *interface{}
sportIds *interface{}
gameType *interface{}
startDate *interface{}
endDate *interface{}
venueIds *interface{}
excludeVenueIds *interface{}
excludeGamePks *interface{}
orgType *interface{}
excludeGamePks *interface{}
orgType *interface{}
includeChildren *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -153,22 +167,22 @@ func (r ApiGamePaceRequest) Execute() (*http.Response, error) {
/*
GamePace View time of game info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGamePaceRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGamePaceRequest
*/
func (a *GamePaceAPIService) GamePace(ctx context.Context) ApiGamePaceRequest {
return ApiGamePaceRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *GamePaceAPIService) GamePaceExecute(r ApiGamePaceRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GamePaceAPIService.GamePace")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,24 +34,23 @@ import (
"strings"
)
// HighLowAPIService HighLowAPI service
type HighLowAPIService service
type ApiHighLowRequest struct {
ctx context.Context
ApiService *HighLowAPIService
ctx context.Context
ApiService *HighLowAPIService
highLowType interface{}
statGroup *interface{}
sortStat *interface{}
season *interface{}
gameType *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
offset *interface{}
limit *interface{}
fields *interface{}
statGroup *interface{}
sortStat *interface{}
season *interface{}
gameType *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
offset *interface{}
limit *interface{}
fields *interface{}
}
// Comma delimited list of categories of statistic to return. Available types in /api/v1/statGroups
@ -106,14 +120,14 @@ func (r ApiHighLowRequest) Execute() (*http.Response, error) {
/*
HighLow View high/low stats by player or team
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param highLowType Type of high/low stats ('player', 'team', 'game')
@return ApiHighLowRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param highLowType Type of high/low stats ('player', 'team', 'game')
@return ApiHighLowRequest
*/
func (a *HighLowAPIService) HighLow(ctx context.Context, highLowType interface{}) ApiHighLowRequest {
return ApiHighLowRequest{
ApiService: a,
ctx: ctx,
ApiService: a,
ctx: ctx,
highLowType: highLowType,
}
}
@ -121,9 +135,9 @@ func (a *HighLowAPIService) HighLow(ctx context.Context, highLowType interface{}
// Execute executes the request
func (a *HighLowAPIService) HighLowExecute(r ApiHighLowRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HighLowAPIService.HighLow")
@ -214,7 +228,7 @@ func (a *HighLowAPIService) HighLowExecute(r ApiHighLowRequest) (*http.Response,
}
type ApiHighLowStatsRequest struct {
ctx context.Context
ctx context.Context
ApiService *HighLowAPIService
}
@ -225,22 +239,22 @@ func (r ApiHighLowStatsRequest) Execute() (*http.Response, error) {
/*
HighLowStats View high/low stat types
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHighLowStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiHighLowStatsRequest
*/
func (a *HighLowAPIService) HighLowStats(ctx context.Context) ApiHighLowStatsRequest {
return ApiHighLowStatsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *HighLowAPIService) HighLowStatsExecute(r ApiHighLowStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HighLowAPIService.HighLowStats")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,15 +34,14 @@ import (
"strings"
)
// HomerunDerbyAPIService HomerunDerbyAPI service
type HomerunDerbyAPIService service
type ApiHomeRunDerbyBracketRequest struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -45,24 +59,24 @@ HomeRunDerbyBracket View a home run derby object
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracketRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracketRequest
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracketRequest {
return ApiHomeRunDerbyBracketRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyBracketExecute(r ApiHomeRunDerbyBracketRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket")
@ -126,10 +140,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracketExecute(r ApiHomeRunDerbyBra
}
type ApiHomeRunDerbyBracket1Request struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -147,24 +161,24 @@ HomeRunDerbyBracket1 View a home run derby object
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracket1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracket1Request
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket1(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracket1Request {
return ApiHomeRunDerbyBracket1Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket1Execute(r ApiHomeRunDerbyBracket1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket1")
@ -228,10 +242,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket1Execute(r ApiHomeRunDerbyBr
}
type ApiHomeRunDerbyBracket2Request struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -249,24 +263,24 @@ HomeRunDerbyBracket2 View a home run derby object
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracket2Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracket2Request
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket2(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracket2Request {
return ApiHomeRunDerbyBracket2Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket2Execute(r ApiHomeRunDerbyBracket2Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket2")
@ -330,10 +344,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket2Execute(r ApiHomeRunDerbyBr
}
type ApiHomeRunDerbyBracket3Request struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -351,24 +365,24 @@ HomeRunDerbyBracket3 View a home run derby object
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracket3Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyBracket3Request
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket3(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracket3Request {
return ApiHomeRunDerbyBracket3Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyBracket3Execute(r ApiHomeRunDerbyBracket3Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket3")
@ -432,10 +446,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket3Execute(r ApiHomeRunDerbyBr
}
type ApiHomeRunDerbyMixedModeRequest struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -453,24 +467,24 @@ HomeRunDerbyMixedMode View home run derby mixed mode (Bracket/Pool combo)
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyMixedModeRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyMixedModeRequest
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyMixedModeRequest {
return ApiHomeRunDerbyMixedModeRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyMixedModeExecute(r ApiHomeRunDerbyMixedModeRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyMixedMode")
@ -534,10 +548,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyMixedModeExecute(r ApiHomeRunDerbyM
}
type ApiHomeRunDerbyMixedMode1Request struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -555,24 +569,24 @@ HomeRunDerbyMixedMode1 View home run derby mixed mode (Bracket/Pool combo)
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyMixedMode1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyMixedMode1Request
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode1(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyMixedMode1Request {
return ApiHomeRunDerbyMixedMode1Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode1Execute(r ApiHomeRunDerbyMixedMode1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyMixedMode1")
@ -636,10 +650,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode1Execute(r ApiHomeRunDerby
}
type ApiHomeRunDerbyPoolRequest struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -657,24 +671,24 @@ HomeRunDerbyPool View home run derby pool
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyPoolRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyPoolRequest
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyPool(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyPoolRequest {
return ApiHomeRunDerbyPoolRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyPoolExecute(r ApiHomeRunDerbyPoolRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyPool")
@ -738,10 +752,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyPoolExecute(r ApiHomeRunDerbyPoolRe
}
type ApiHomeRunDerbyPool1Request struct {
ctx context.Context
ctx context.Context
ApiService *HomerunDerbyAPIService
gamePk interface{}
fields *interface{}
gamePk interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -759,24 +773,24 @@ HomeRunDerbyPool1 View home run derby pool
This endpoint allows you to pull home run derby information
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyPool1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@return ApiHomeRunDerbyPool1Request
*/
func (a *HomerunDerbyAPIService) HomeRunDerbyPool1(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyPool1Request {
return ApiHomeRunDerbyPool1Request{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
ctx: ctx,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *HomerunDerbyAPIService) HomeRunDerbyPool1Execute(r ApiHomeRunDerbyPool1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyPool1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,16 +34,15 @@ import (
"strings"
)
// JobAPIService JobAPI service
type JobAPIService service
type ApiDatacastersRequest struct {
ctx context.Context
ctx context.Context
ApiService *JobAPIService
sportId *interface{}
date *interface{}
fields *interface{}
sportId *interface{}
date *interface{}
fields *interface{}
}
// Top level organization of a sport
@ -58,22 +72,22 @@ Datacasters Get datacaster jobs
Get datacaster jobs
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDatacastersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDatacastersRequest
*/
func (a *JobAPIService) Datacasters(ctx context.Context) ApiDatacastersRequest {
return ApiDatacastersRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *JobAPIService) DatacastersExecute(r ApiDatacastersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.Datacasters")
@ -142,12 +156,12 @@ func (a *JobAPIService) DatacastersExecute(r ApiDatacastersRequest) (*http.Respo
}
type ApiGetJobsByTypeRequest struct {
ctx context.Context
ctx context.Context
ApiService *JobAPIService
jobType *interface{}
sportId *interface{}
date *interface{}
fields *interface{}
jobType *interface{}
sportId *interface{}
date *interface{}
fields *interface{}
}
// Job Type Identifier (ie. UMPR, etc..)
@ -183,22 +197,22 @@ GetJobsByType Get jobs by type
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetJobsByTypeRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetJobsByTypeRequest
*/
func (a *JobAPIService) GetJobsByType(ctx context.Context) ApiGetJobsByTypeRequest {
return ApiGetJobsByTypeRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *JobAPIService) GetJobsByTypeExecute(r ApiGetJobsByTypeRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.GetJobsByType")
@ -271,11 +285,11 @@ func (a *JobAPIService) GetJobsByTypeExecute(r ApiGetJobsByTypeRequest) (*http.R
}
type ApiOfficialScorersRequest struct {
ctx context.Context
ctx context.Context
ApiService *JobAPIService
sportId *interface{}
date *interface{}
fields *interface{}
sportId *interface{}
date *interface{}
fields *interface{}
}
// Top level organization of a sport
@ -305,22 +319,22 @@ OfficialScorers Get official scorers
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOfficialScorersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiOfficialScorersRequest
*/
func (a *JobAPIService) OfficialScorers(ctx context.Context) ApiOfficialScorersRequest {
return ApiOfficialScorersRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *JobAPIService) OfficialScorersExecute(r ApiOfficialScorersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.OfficialScorers")
@ -389,11 +403,11 @@ func (a *JobAPIService) OfficialScorersExecute(r ApiOfficialScorersRequest) (*ht
}
type ApiUmpireScheduleRequest struct {
ctx context.Context
ctx context.Context
ApiService *JobAPIService
umpireId interface{}
season *interface{}
fields *interface{}
umpireId interface{}
season *interface{}
fields *interface{}
}
// Season of play
@ -417,24 +431,24 @@ UmpireSchedule Get umpires and associated game for umpireId
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param umpireId A unique identifier for an umpire
@return ApiUmpireScheduleRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param umpireId A unique identifier for an umpire
@return ApiUmpireScheduleRequest
*/
func (a *JobAPIService) UmpireSchedule(ctx context.Context, umpireId interface{}) ApiUmpireScheduleRequest {
return ApiUmpireScheduleRequest{
ApiService: a,
ctx: ctx,
umpireId: umpireId,
ctx: ctx,
umpireId: umpireId,
}
}
// Execute executes the request
func (a *JobAPIService) UmpireScheduleExecute(r ApiUmpireScheduleRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.UmpireSchedule")
@ -502,12 +516,12 @@ func (a *JobAPIService) UmpireScheduleExecute(r ApiUmpireScheduleRequest) (*http
}
type ApiUmpiresRequest struct {
ctx context.Context
ctx context.Context
ApiService *JobAPIService
sportId *interface{}
date *interface{}
fields *interface{}
season *interface{}
sportId *interface{}
date *interface{}
fields *interface{}
season *interface{}
}
// Top level organization of a sport
@ -543,22 +557,22 @@ Umpires Get umpires
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUmpiresRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUmpiresRequest
*/
func (a *JobAPIService) Umpires(ctx context.Context) ApiUmpiresRequest {
return ApiUmpiresRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *JobAPIService) UmpiresExecute(r ApiUmpiresRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.Umpires")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,17 +34,16 @@ import (
"strings"
)
// LeagueAPIService LeagueAPI service
type LeagueAPIService service
type ApiAllStarBallotRequest struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
}
// Comma delimited list of Unique league identifiers
@ -57,24 +71,24 @@ func (r ApiAllStarBallotRequest) Execute() (*http.Response, error) {
/*
AllStarBallot View al star ballot info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallotRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallotRequest
*/
func (a *LeagueAPIService) AllStarBallot(ctx context.Context, leagueId interface{}) ApiAllStarBallotRequest {
return ApiAllStarBallotRequest{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarBallotExecute(r ApiAllStarBallotRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot")
@ -144,12 +158,12 @@ func (a *LeagueAPIService) AllStarBallotExecute(r ApiAllStarBallotRequest) (*htt
}
type ApiAllStarBallot1Request struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
}
// Comma delimited list of Unique league identifiers
@ -177,24 +191,24 @@ func (r ApiAllStarBallot1Request) Execute() (*http.Response, error) {
/*
AllStarBallot1 View al star ballot info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallot1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallot1Request
*/
func (a *LeagueAPIService) AllStarBallot1(ctx context.Context, leagueId interface{}) ApiAllStarBallot1Request {
return ApiAllStarBallot1Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarBallot1Execute(r ApiAllStarBallot1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot1")
@ -264,12 +278,12 @@ func (a *LeagueAPIService) AllStarBallot1Execute(r ApiAllStarBallot1Request) (*h
}
type ApiAllStarBallot2Request struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
}
// Comma delimited list of Unique league identifiers
@ -297,24 +311,24 @@ func (r ApiAllStarBallot2Request) Execute() (*http.Response, error) {
/*
AllStarBallot2 View al star ballot info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallot2Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallot2Request
*/
func (a *LeagueAPIService) AllStarBallot2(ctx context.Context, leagueId interface{}) ApiAllStarBallot2Request {
return ApiAllStarBallot2Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarBallot2Execute(r ApiAllStarBallot2Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot2")
@ -384,12 +398,12 @@ func (a *LeagueAPIService) AllStarBallot2Execute(r ApiAllStarBallot2Request) (*h
}
type ApiAllStarBallot3Request struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
leagueId interface{}
leagueIds *interface{}
season *interface{}
fields *interface{}
}
// Comma delimited list of Unique league identifiers
@ -417,24 +431,24 @@ func (r ApiAllStarBallot3Request) Execute() (*http.Response, error) {
/*
AllStarBallot3 View al star ballot info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallot3Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarBallot3Request
*/
func (a *LeagueAPIService) AllStarBallot3(ctx context.Context, leagueId interface{}) ApiAllStarBallot3Request {
return ApiAllStarBallot3Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarBallot3Execute(r ApiAllStarBallot3Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot3")
@ -504,11 +518,11 @@ func (a *LeagueAPIService) AllStarBallot3Execute(r ApiAllStarBallot3Request) (*h
}
type ApiAllStarFinalVoteRequest struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
season *interface{}
fields *interface{}
leagueId interface{}
season *interface{}
fields *interface{}
}
// Season of play
@ -530,24 +544,24 @@ func (r ApiAllStarFinalVoteRequest) Execute() (*http.Response, error) {
/*
AllStarFinalVote View all star final vote info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarFinalVoteRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarFinalVoteRequest
*/
func (a *LeagueAPIService) AllStarFinalVote(ctx context.Context, leagueId interface{}) ApiAllStarFinalVoteRequest {
return ApiAllStarFinalVoteRequest{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarFinalVoteExecute(r ApiAllStarFinalVoteRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarFinalVote")
@ -614,11 +628,11 @@ func (a *LeagueAPIService) AllStarFinalVoteExecute(r ApiAllStarFinalVoteRequest)
}
type ApiAllStarFinalVote1Request struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
season *interface{}
fields *interface{}
leagueId interface{}
season *interface{}
fields *interface{}
}
// Season of play
@ -640,24 +654,24 @@ func (r ApiAllStarFinalVote1Request) Execute() (*http.Response, error) {
/*
AllStarFinalVote1 View all star final vote info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarFinalVote1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarFinalVote1Request
*/
func (a *LeagueAPIService) AllStarFinalVote1(ctx context.Context, leagueId interface{}) ApiAllStarFinalVote1Request {
return ApiAllStarFinalVote1Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarFinalVote1Execute(r ApiAllStarFinalVote1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarFinalVote1")
@ -724,11 +738,11 @@ func (a *LeagueAPIService) AllStarFinalVote1Execute(r ApiAllStarFinalVote1Reques
}
type ApiAllStarWriteInsRequest struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
season *interface{}
fields *interface{}
leagueId interface{}
season *interface{}
fields *interface{}
}
// Season of play
@ -750,24 +764,24 @@ func (r ApiAllStarWriteInsRequest) Execute() (*http.Response, error) {
/*
AllStarWriteIns View all star write ins info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarWriteInsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarWriteInsRequest
*/
func (a *LeagueAPIService) AllStarWriteIns(ctx context.Context, leagueId interface{}) ApiAllStarWriteInsRequest {
return ApiAllStarWriteInsRequest{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarWriteInsExecute(r ApiAllStarWriteInsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarWriteIns")
@ -834,11 +848,11 @@ func (a *LeagueAPIService) AllStarWriteInsExecute(r ApiAllStarWriteInsRequest) (
}
type ApiAllStarWriteIns1Request struct {
ctx context.Context
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
season *interface{}
fields *interface{}
leagueId interface{}
season *interface{}
fields *interface{}
}
// Season of play
@ -860,24 +874,24 @@ func (r ApiAllStarWriteIns1Request) Execute() (*http.Response, error) {
/*
AllStarWriteIns1 View all star write ins info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarWriteIns1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiAllStarWriteIns1Request
*/
func (a *LeagueAPIService) AllStarWriteIns1(ctx context.Context, leagueId interface{}) ApiAllStarWriteIns1Request {
return ApiAllStarWriteIns1Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) AllStarWriteIns1Execute(r ApiAllStarWriteIns1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarWriteIns1")
@ -944,14 +958,14 @@ func (a *LeagueAPIService) AllStarWriteIns1Execute(r ApiAllStarWriteIns1Request)
}
type ApiLeagueRequest struct {
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
activeStatus *interface{}
}
@ -998,24 +1012,24 @@ func (r ApiLeagueRequest) Execute() (*http.Response, error) {
/*
League View league info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeagueRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeagueRequest
*/
func (a *LeagueAPIService) League(ctx context.Context, leagueId interface{}) ApiLeagueRequest {
return ApiLeagueRequest{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) LeagueExecute(r ApiLeagueRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League")
@ -1094,14 +1108,14 @@ func (a *LeagueAPIService) LeagueExecute(r ApiLeagueRequest) (*http.Response, er
}
type ApiLeague1Request struct {
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
activeStatus *interface{}
}
@ -1148,24 +1162,24 @@ func (r ApiLeague1Request) Execute() (*http.Response, error) {
/*
League1 View league info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeague1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeague1Request
*/
func (a *LeagueAPIService) League1(ctx context.Context, leagueId interface{}) ApiLeague1Request {
return ApiLeague1Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) League1Execute(r ApiLeague1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League1")
@ -1244,14 +1258,14 @@ func (a *LeagueAPIService) League1Execute(r ApiLeague1Request) (*http.Response,
}
type ApiLeague2Request struct {
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
activeStatus *interface{}
}
@ -1298,24 +1312,24 @@ func (r ApiLeague2Request) Execute() (*http.Response, error) {
/*
League2 View league info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeague2Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeague2Request
*/
func (a *LeagueAPIService) League2(ctx context.Context, leagueId interface{}) ApiLeague2Request {
return ApiLeague2Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) League2Execute(r ApiLeague2Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League2")
@ -1394,14 +1408,14 @@ func (a *LeagueAPIService) League2Execute(r ApiLeague2Request) (*http.Response,
}
type ApiLeague3Request struct {
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
ctx context.Context
ApiService *LeagueAPIService
leagueId interface{}
leagueIds *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
sportId *interface{}
activeStatus *interface{}
}
@ -1448,24 +1462,24 @@ func (r ApiLeague3Request) Execute() (*http.Response, error) {
/*
League3 View league info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeague3Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param leagueId Unique League Identifier
@return ApiLeague3Request
*/
func (a *LeagueAPIService) League3(ctx context.Context, leagueId interface{}) ApiLeague3Request {
return ApiLeague3Request{
ApiService: a,
ctx: ctx,
leagueId: leagueId,
ctx: ctx,
leagueId: leagueId,
}
}
// Execute executes the request
func (a *LeagueAPIService) League3Execute(r ApiLeague3Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League3")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,12 +33,11 @@ import (
"net/url"
)
// MilestonesAPIService MilestonesAPI service
type MilestonesAPIService service
type ApiAchievementStatusesRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -34,22 +48,22 @@ func (r ApiAchievementStatusesRequest) Execute() (*http.Response, error) {
/*
AchievementStatuses View available achievementStatus options
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAchievementStatusesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAchievementStatusesRequest
*/
func (a *MilestonesAPIService) AchievementStatuses(ctx context.Context) ApiAchievementStatusesRequest {
return ApiAchievementStatusesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MilestonesAPIService) AchievementStatusesExecute(r ApiAchievementStatusesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.AchievementStatuses")
@ -109,7 +123,7 @@ func (a *MilestonesAPIService) AchievementStatusesExecute(r ApiAchievementStatus
}
type ApiMilestoneDurationsRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -120,22 +134,22 @@ func (r ApiMilestoneDurationsRequest) Execute() (*http.Response, error) {
/*
MilestoneDurations View available milestoneDurations options
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneDurationsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneDurationsRequest
*/
func (a *MilestonesAPIService) MilestoneDurations(ctx context.Context) ApiMilestoneDurationsRequest {
return ApiMilestoneDurationsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MilestonesAPIService) MilestoneDurationsExecute(r ApiMilestoneDurationsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneDurations")
@ -195,7 +209,7 @@ func (a *MilestonesAPIService) MilestoneDurationsExecute(r ApiMilestoneDurations
}
type ApiMilestoneLookupsRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -206,22 +220,22 @@ func (r ApiMilestoneLookupsRequest) Execute() (*http.Response, error) {
/*
MilestoneLookups View available milestoneLookup options
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneLookupsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneLookupsRequest
*/
func (a *MilestonesAPIService) MilestoneLookups(ctx context.Context) ApiMilestoneLookupsRequest {
return ApiMilestoneLookupsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MilestonesAPIService) MilestoneLookupsExecute(r ApiMilestoneLookupsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneLookups")
@ -281,7 +295,7 @@ func (a *MilestonesAPIService) MilestoneLookupsExecute(r ApiMilestoneLookupsRequ
}
type ApiMilestoneStatisticsRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -292,22 +306,22 @@ func (r ApiMilestoneStatisticsRequest) Execute() (*http.Response, error) {
/*
MilestoneStatistics View available milestone statistics options
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneStatisticsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneStatisticsRequest
*/
func (a *MilestonesAPIService) MilestoneStatistics(ctx context.Context) ApiMilestoneStatisticsRequest {
return ApiMilestoneStatisticsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MilestonesAPIService) MilestoneStatisticsExecute(r ApiMilestoneStatisticsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneStatistics")
@ -367,7 +381,7 @@ func (a *MilestonesAPIService) MilestoneStatisticsExecute(r ApiMilestoneStatisti
}
type ApiMilestoneTypesRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -378,22 +392,22 @@ func (r ApiMilestoneTypesRequest) Execute() (*http.Response, error) {
/*
MilestoneTypes View available milestoneType options
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneTypesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestoneTypesRequest
*/
func (a *MilestonesAPIService) MilestoneTypes(ctx context.Context) ApiMilestoneTypesRequest {
return ApiMilestoneTypesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MilestonesAPIService) MilestoneTypesExecute(r ApiMilestoneTypesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneTypes")
@ -453,25 +467,25 @@ func (a *MilestonesAPIService) MilestoneTypesExecute(r ApiMilestoneTypesRequest)
}
type ApiMilestonesRequest struct {
ctx context.Context
ApiService *MilestonesAPIService
orgType *interface{}
ctx context.Context
ApiService *MilestonesAPIService
orgType *interface{}
achievementStatuses *interface{}
milestoneTypes *interface{}
isLastAchievement *interface{}
milestoneTypes *interface{}
isLastAchievement *interface{}
milestoneStatistics *interface{}
milestoneValues *interface{}
playerIds *interface{}
teamIds *interface{}
leagueIds *interface{}
statGroup *interface{}
season *interface{}
seasons *interface{}
venueIds *interface{}
gamePks *interface{}
limit *interface{}
fields *interface{}
showFirsts *interface{}
milestoneValues *interface{}
playerIds *interface{}
teamIds *interface{}
leagueIds *interface{}
statGroup *interface{}
season *interface{}
seasons *interface{}
venueIds *interface{}
gamePks *interface{}
limit *interface{}
fields *interface{}
showFirsts *interface{}
}
// Organization level. Format: T(Team), L(League), S(Sport)
@ -583,22 +597,22 @@ func (r ApiMilestonesRequest) Execute() (*http.Response, error) {
/*
Milestones View pending and achieved milestones.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestonesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMilestonesRequest
*/
func (a *MilestonesAPIService) Milestones(ctx context.Context) ApiMilestonesRequest {
return ApiMilestonesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *MilestonesAPIService) MilestonesExecute(r ApiMilestonesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.Milestones")

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,15 +34,14 @@ import (
"strings"
)
// PersonAPIService PersonAPI service
type PersonAPIService service
type ApiAwardRequest struct {
ctx context.Context
ctx context.Context
ApiService *PersonAPIService
personId interface{}
fields *interface{}
personId interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -43,24 +57,24 @@ func (r ApiAwardRequest) Execute() (*http.Response, error) {
/*
Award View a player's awards
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiAwardRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiAwardRequest
*/
func (a *PersonAPIService) Award(ctx context.Context, personId interface{}) ApiAwardRequest {
return ApiAwardRequest{
ApiService: a,
ctx: ctx,
personId: personId,
ctx: ctx,
personId: personId,
}
}
// Execute executes the request
func (a *PersonAPIService) AwardExecute(r ApiAwardRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Award")
@ -124,13 +138,13 @@ func (a *PersonAPIService) AwardExecute(r ApiAwardRequest) (*http.Response, erro
}
type ApiCurrentGameStatsRequest struct {
ctx context.Context
ApiService *PersonAPIService
ctx context.Context
ApiService *PersonAPIService
updatedSince *interface{}
limit *interface{}
offset *interface{}
accent *interface{}
fields *interface{}
limit *interface{}
offset *interface{}
accent *interface{}
fields *interface{}
}
// Format: YYYY-MM-DDTHH:MM:SSZ
@ -170,22 +184,22 @@ func (r ApiCurrentGameStatsRequest) Execute() (*http.Response, error) {
/*
CurrentGameStats View a player's change log
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCurrentGameStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCurrentGameStatsRequest
*/
func (a *PersonAPIService) CurrentGameStats(ctx context.Context) ApiCurrentGameStatsRequest {
return ApiCurrentGameStatsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *PersonAPIService) CurrentGameStatsExecute(r ApiCurrentGameStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.CurrentGameStats")
@ -261,12 +275,12 @@ func (a *PersonAPIService) CurrentGameStatsExecute(r ApiCurrentGameStatsRequest)
}
type ApiFreeAgentsRequest struct {
ctx context.Context
ctx context.Context
ApiService *PersonAPIService
season *interface{}
order *interface{}
accent *interface{}
fields *interface{}
season *interface{}
order *interface{}
accent *interface{}
fields *interface{}
}
// Season of play
@ -299,22 +313,22 @@ func (r ApiFreeAgentsRequest) Execute() (*http.Response, error) {
/*
FreeAgents Get free agents
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiFreeAgentsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiFreeAgentsRequest
*/
func (a *PersonAPIService) FreeAgents(ctx context.Context) ApiFreeAgentsRequest {
return ApiFreeAgentsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *PersonAPIService) FreeAgentsExecute(r ApiFreeAgentsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.FreeAgents")
@ -387,14 +401,14 @@ func (a *PersonAPIService) FreeAgentsExecute(r ApiFreeAgentsRequest) (*http.Resp
}
type ApiPersonRequest struct {
ctx context.Context
ctx context.Context
ApiService *PersonAPIService
personId interface{}
personIds *interface{}
accent *interface{}
season *interface{}
group *interface{}
fields *interface{}
personId interface{}
personIds *interface{}
accent *interface{}
season *interface{}
group *interface{}
fields *interface{}
}
// Comma delimited list of person ID. Format: 1234, 2345
@ -436,24 +450,24 @@ Person View a player
This endpoint allows you to pull the information of players
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiPersonRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiPersonRequest
*/
func (a *PersonAPIService) Person(ctx context.Context, personId interface{}) ApiPersonRequest {
return ApiPersonRequest{
ApiService: a,
ctx: ctx,
personId: personId,
ctx: ctx,
personId: personId,
}
}
// Execute executes the request
func (a *PersonAPIService) PersonExecute(r ApiPersonRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Person")
@ -529,14 +543,14 @@ func (a *PersonAPIService) PersonExecute(r ApiPersonRequest) (*http.Response, er
}
type ApiPerson1Request struct {
ctx context.Context
ctx context.Context
ApiService *PersonAPIService
personId interface{}
personIds *interface{}
accent *interface{}
season *interface{}
group *interface{}
fields *interface{}
personId interface{}
personIds *interface{}
accent *interface{}
season *interface{}
group *interface{}
fields *interface{}
}
// Comma delimited list of person ID. Format: 1234, 2345
@ -578,24 +592,24 @@ Person1 View a player
This endpoint allows you to pull the information of players
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiPerson1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiPerson1Request
*/
func (a *PersonAPIService) Person1(ctx context.Context, personId interface{}) ApiPerson1Request {
return ApiPerson1Request{
ApiService: a,
ctx: ctx,
personId: personId,
ctx: ctx,
personId: personId,
}
}
// Execute executes the request
func (a *PersonAPIService) Person1Execute(r ApiPerson1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Person1")
@ -671,12 +685,12 @@ func (a *PersonAPIService) Person1Execute(r ApiPerson1Request) (*http.Response,
}
type ApiPlayerGameStatsRequest struct {
ctx context.Context
ctx context.Context
ApiService *PersonAPIService
personId interface{}
gamePk interface{}
group *interface{}
fields *interface{}
personId interface{}
gamePk interface{}
group *interface{}
fields *interface{}
}
// Category of statistic to return. Available types in /api/v1/statGroups
@ -698,26 +712,26 @@ func (r ApiPlayerGameStatsRequest) Execute() (*http.Response, error) {
/*
PlayerGameStats View a player's game stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@param gamePk Unique Primary Key Representing a Game
@return ApiPlayerGameStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@param gamePk Unique Primary Key Representing a Game
@return ApiPlayerGameStatsRequest
*/
func (a *PersonAPIService) PlayerGameStats(ctx context.Context, personId interface{}, gamePk interface{}) ApiPlayerGameStatsRequest {
return ApiPlayerGameStatsRequest{
ApiService: a,
ctx: ctx,
personId: personId,
gamePk: gamePk,
ctx: ctx,
personId: personId,
gamePk: gamePk,
}
}
// Execute executes the request
func (a *PersonAPIService) PlayerGameStatsExecute(r ApiPlayerGameStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.PlayerGameStats")
@ -785,21 +799,21 @@ func (a *PersonAPIService) PlayerGameStatsExecute(r ApiPlayerGameStatsRequest) (
}
type ApiSearchRequest struct {
ctx context.Context
ApiService *PersonAPIService
names *interface{}
personIds *interface{}
sportIds *interface{}
leagueIds *interface{}
teamIds *interface{}
ctx context.Context
ApiService *PersonAPIService
names *interface{}
personIds *interface{}
sportIds *interface{}
leagueIds *interface{}
teamIds *interface{}
leagueListId *interface{}
active *interface{}
verified *interface{}
rookie *interface{}
seasons *interface{}
fields *interface{}
accent *interface{}
limit *interface{}
active *interface{}
verified *interface{}
rookie *interface{}
seasons *interface{}
fields *interface{}
accent *interface{}
limit *interface{}
}
// Name a player uses
@ -887,22 +901,22 @@ func (r ApiSearchRequest) Execute() (*http.Response, error) {
/*
Search Search for a player by name
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSearchRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSearchRequest
*/
func (a *PersonAPIService) Search(ctx context.Context) ApiSearchRequest {
return ApiSearchRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *PersonAPIService) SearchExecute(r ApiSearchRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Search")
@ -1001,34 +1015,34 @@ func (a *PersonAPIService) SearchExecute(r ApiSearchRequest) (*http.Response, er
}
type ApiStats3Request struct {
ctx context.Context
ApiService *PersonAPIService
personId interface{}
stats *interface{}
group *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
opposingTeamId *interface{}
ctx context.Context
ApiService *PersonAPIService
personId interface{}
stats *interface{}
group *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
opposingTeamId *interface{}
opposingPlayerId *interface{}
metrics *interface{}
leagueId *interface{}
leagueListId *interface{}
sitCodes *interface{}
combineSits *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
limit *interface{}
eventType *interface{}
pitchType *interface{}
hitTrajectory *interface{}
batSide *interface{}
gameType *interface{}
groupBy *interface{}
accent *interface{}
fields *interface{}
metrics *interface{}
leagueId *interface{}
leagueListId *interface{}
sitCodes *interface{}
combineSits *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
limit *interface{}
eventType *interface{}
pitchType *interface{}
hitTrajectory *interface{}
batSide *interface{}
gameType *interface{}
groupBy *interface{}
accent *interface{}
fields *interface{}
}
// Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
@ -1188,24 +1202,24 @@ func (r ApiStats3Request) Execute() (*http.Response, error) {
/*
Stats3 View a players stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiStats3Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiStats3Request
*/
func (a *PersonAPIService) Stats3(ctx context.Context, personId interface{}) ApiStats3Request {
return ApiStats3Request{
ApiService: a,
ctx: ctx,
personId: personId,
ctx: ctx,
personId: personId,
}
}
// Execute executes the request
func (a *PersonAPIService) Stats3Execute(r ApiStats3Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Stats3")
@ -1342,34 +1356,34 @@ func (a *PersonAPIService) Stats3Execute(r ApiStats3Request) (*http.Response, er
}
type ApiStatsMetricsRequest struct {
ctx context.Context
ApiService *PersonAPIService
personId interface{}
stats *interface{}
group *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
opposingTeamId *interface{}
ctx context.Context
ApiService *PersonAPIService
personId interface{}
stats *interface{}
group *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
opposingTeamId *interface{}
opposingPlayerId *interface{}
metrics *interface{}
leagueId *interface{}
leagueListId *interface{}
sitCodes *interface{}
combineSits *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
limit *interface{}
eventType *interface{}
pitchType *interface{}
hitTrajectory *interface{}
batSide *interface{}
gameType *interface{}
groupBy *interface{}
accent *interface{}
fields *interface{}
metrics *interface{}
leagueId *interface{}
leagueListId *interface{}
sitCodes *interface{}
combineSits *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
limit *interface{}
eventType *interface{}
pitchType *interface{}
hitTrajectory *interface{}
batSide *interface{}
gameType *interface{}
groupBy *interface{}
accent *interface{}
fields *interface{}
}
// Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
@ -1529,24 +1543,24 @@ func (r ApiStatsMetricsRequest) Execute() (*http.Response, error) {
/*
StatsMetrics View a player's stat metrics
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiStatsMetricsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param personId Unique Player Identifier. Format: 434538, 429665, etc
@return ApiStatsMetricsRequest
*/
func (a *PersonAPIService) StatsMetrics(ctx context.Context, personId interface{}) ApiStatsMetricsRequest {
return ApiStatsMetricsRequest{
ApiService: a,
ctx: ctx,
personId: personId,
ctx: ctx,
personId: personId,
}
}
// Execute executes the request
func (a *PersonAPIService) StatsMetricsExecute(r ApiStatsMetricsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.StatsMetrics")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,19 +33,18 @@ import (
"net/url"
)
// PredictionsAPIService PredictionsAPI service
type PredictionsAPIService service
type ApiGetPropsRequest struct {
ctx context.Context
ApiService *PredictionsAPIService
batterId *interface{}
pitcherId *interface{}
venueId *interface{}
batSide *interface{}
pitchHand *interface{}
batterPosition *interface{}
ctx context.Context
ApiService *PredictionsAPIService
batterId *interface{}
pitcherId *interface{}
venueId *interface{}
batSide *interface{}
pitchHand *interface{}
batterPosition *interface{}
pitcherPosition *interface{}
}
@ -85,22 +99,22 @@ GetProps Get play-level predictions based on input scenarios
This endpoint allows you to get play-level predictions based on input scenarios
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetPropsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetPropsRequest
*/
func (a *PredictionsAPIService) GetProps(ctx context.Context) ApiGetPropsRequest {
return ApiGetPropsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *PredictionsAPIService) GetPropsExecute(r ApiGetPropsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PredictionsAPIService.GetProps")
@ -181,9 +195,9 @@ func (a *PredictionsAPIService) GetPropsExecute(r ApiGetPropsRequest) (*http.Res
}
type ApiGetPropsAdjustRequest struct {
ctx context.Context
ctx context.Context
ApiService *PredictionsAPIService
gamePk *interface{}
gamePk *interface{}
}
// Unique Primary Key Representing a Game
@ -201,22 +215,22 @@ GetPropsAdjust Get play-level predictions based on input scenarios
This endpoint allows you to get play-level predictions based on input scenarios
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetPropsAdjustRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetPropsAdjustRequest
*/
func (a *PredictionsAPIService) GetPropsAdjust(ctx context.Context) ApiGetPropsAdjustRequest {
return ApiGetPropsAdjustRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *PredictionsAPIService) GetPropsAdjustExecute(r ApiGetPropsAdjustRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PredictionsAPIService.GetPropsAdjust")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,17 +33,16 @@ import (
"net/url"
)
// ReviewsAPIService ReviewsAPI service
type ReviewsAPIService service
type ApiGetReviewInfoRequest struct {
ctx context.Context
ctx context.Context
ApiService *ReviewsAPIService
sportId *interface{}
season *interface{}
gameType *interface{}
fields *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
fields *interface{}
}
// Unique Team Identifier. Format: 141, 147, etc
@ -62,22 +76,22 @@ func (r ApiGetReviewInfoRequest) Execute() (*http.Response, error) {
/*
GetReviewInfo Get review info
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetReviewInfoRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetReviewInfoRequest
*/
func (a *ReviewsAPIService) GetReviewInfo(ctx context.Context) ApiGetReviewInfoRequest {
return ApiGetReviewInfoRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ReviewsAPIService) GetReviewInfoExecute(r ApiGetReviewInfoRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReviewsAPIService.GetReviewInfo")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,22 +33,21 @@ import (
"net/url"
)
// ScheduleAPIService ScheduleAPI service
type ScheduleAPIService service
type ApiPostseasonScheduleRequest struct {
ctx context.Context
ApiService *ScheduleAPIService
gameTypes *interface{}
seriesNumber *interface{}
teamId *interface{}
sportId *interface{}
useLatestGames *interface{}
ctx context.Context
ApiService *ScheduleAPIService
gameTypes *interface{}
seriesNumber *interface{}
teamId *interface{}
sportId *interface{}
useLatestGames *interface{}
useFeaturedGame *interface{}
season *interface{}
publicFacing *interface{}
fields *interface{}
season *interface{}
publicFacing *interface{}
fields *interface{}
}
// Comma delimited list of type of Game. Available types in /api/v1/gameTypes
@ -95,22 +109,22 @@ PostseasonSchedule Get postseason schedule
This endpoint allows you to pull postseason schedules
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPostseasonScheduleRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPostseasonScheduleRequest
*/
func (a *ScheduleAPIService) PostseasonSchedule(ctx context.Context) ApiPostseasonScheduleRequest {
return ApiPostseasonScheduleRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) PostseasonScheduleExecute(r ApiPostseasonScheduleRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.PostseasonSchedule")
@ -197,19 +211,19 @@ func (a *ScheduleAPIService) PostseasonScheduleExecute(r ApiPostseasonScheduleRe
}
type ApiPostseasonScheduleSeriesRequest struct {
ctx context.Context
ApiService *ScheduleAPIService
gameTypes *interface{}
seriesNumber *interface{}
teamId *interface{}
sportId *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
useLatestGames *interface{}
ctx context.Context
ApiService *ScheduleAPIService
gameTypes *interface{}
seriesNumber *interface{}
teamId *interface{}
sportId *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
useLatestGames *interface{}
useFeaturedGame *interface{}
season *interface{}
fields *interface{}
season *interface{}
fields *interface{}
}
// Comma delimited list of type of Game. Available types in /api/v1/gameTypes
@ -283,22 +297,22 @@ PostseasonScheduleSeries Get postseason series schedules
This endpoint allows you to pull postseason schedules
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPostseasonScheduleSeriesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPostseasonScheduleSeriesRequest
*/
func (a *ScheduleAPIService) PostseasonScheduleSeries(ctx context.Context) ApiPostseasonScheduleSeriesRequest {
return ApiPostseasonScheduleSeriesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) PostseasonScheduleSeriesExecute(r ApiPostseasonScheduleSeriesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.PostseasonScheduleSeries")
@ -391,32 +405,32 @@ func (a *ScheduleAPIService) PostseasonScheduleSeriesExecute(r ApiPostseasonSche
}
type ApiScheduleRequest struct {
ctx context.Context
ApiService *ScheduleAPIService
ctx context.Context
ApiService *ScheduleAPIService
usingPrivateEndpoint *interface{}
calendarTypes *interface{}
eventTypes *interface{}
scheduleEventTypes *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
gamePk *interface{}
gamePks *interface{}
eventIds *interface{}
venueIds *interface{}
performerIds *interface{}
gameTypes *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
timecode *interface{}
useLatestGames *interface{}
opponentId *interface{}
publicFacing *interface{}
fields *interface{}
calendarTypes *interface{}
eventTypes *interface{}
scheduleEventTypes *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
gamePk *interface{}
gamePks *interface{}
eventIds *interface{}
venueIds *interface{}
performerIds *interface{}
gameTypes *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
timecode *interface{}
useLatestGames *interface{}
opponentId *interface{}
publicFacing *interface{}
fields *interface{}
}
func (r ApiScheduleRequest) UsingPrivateEndpoint(usingPrivateEndpoint interface{}) ApiScheduleRequest {
@ -570,22 +584,22 @@ Schedule View schedule info based on scheduleType.
View schedule info. This endpoint allows you to pull schedules
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiScheduleRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiScheduleRequest
*/
func (a *ScheduleAPIService) Schedule(ctx context.Context) ApiScheduleRequest {
return ApiScheduleRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) ScheduleExecute(r ApiScheduleRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.Schedule")
@ -718,32 +732,32 @@ func (a *ScheduleAPIService) ScheduleExecute(r ApiScheduleRequest) (*http.Respon
}
type ApiSchedule1Request struct {
ctx context.Context
ApiService *ScheduleAPIService
ctx context.Context
ApiService *ScheduleAPIService
usingPrivateEndpoint *interface{}
calendarTypes *interface{}
eventTypes *interface{}
scheduleEventTypes *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
gamePk *interface{}
gamePks *interface{}
eventIds *interface{}
venueIds *interface{}
performerIds *interface{}
gameTypes *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
timecode *interface{}
useLatestGames *interface{}
opponentId *interface{}
publicFacing *interface{}
fields *interface{}
calendarTypes *interface{}
eventTypes *interface{}
scheduleEventTypes *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
gamePk *interface{}
gamePks *interface{}
eventIds *interface{}
venueIds *interface{}
performerIds *interface{}
gameTypes *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
timecode *interface{}
useLatestGames *interface{}
opponentId *interface{}
publicFacing *interface{}
fields *interface{}
}
func (r ApiSchedule1Request) UsingPrivateEndpoint(usingPrivateEndpoint interface{}) ApiSchedule1Request {
@ -897,22 +911,22 @@ Schedule1 View schedule info based on scheduleType.
View schedule info. This endpoint allows you to pull schedules
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSchedule1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSchedule1Request
*/
func (a *ScheduleAPIService) Schedule1(ctx context.Context) ApiSchedule1Request {
return ApiSchedule1Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) Schedule1Execute(r ApiSchedule1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.Schedule1")
@ -1045,12 +1059,12 @@ func (a *ScheduleAPIService) Schedule1Execute(r ApiSchedule1Request) (*http.Resp
}
type ApiTieGamesRequest struct {
ctx context.Context
ctx context.Context
ApiService *ScheduleAPIService
season *interface{}
sportId *interface{}
gameTypes *interface{}
fields *interface{}
season *interface{}
sportId *interface{}
gameTypes *interface{}
fields *interface{}
}
// Season of play
@ -1086,22 +1100,22 @@ TieGames Get tied game schedules
This endpoint allows you to pull tie game schedules for the given season
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTieGamesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTieGamesRequest
*/
func (a *ScheduleAPIService) TieGames(ctx context.Context) ApiTieGamesRequest {
return ApiTieGamesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) TieGamesExecute(r ApiTieGamesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.TieGames")
@ -1174,30 +1188,30 @@ func (a *ScheduleAPIService) TieGamesExecute(r ApiTieGamesRequest) (*http.Respon
}
type ApiTrackingEventsScheduleRequest struct {
ctx context.Context
ApiService *ScheduleAPIService
calendarTypes *interface{}
eventTypes *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
gamePk *interface{}
gamePks *interface{}
eventIds *interface{}
venueIds *interface{}
performerIds *interface{}
gameTypes *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
timecode *interface{}
ctx context.Context
ApiService *ScheduleAPIService
calendarTypes *interface{}
eventTypes *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
gamePk *interface{}
gamePks *interface{}
eventIds *interface{}
venueIds *interface{}
performerIds *interface{}
gameTypes *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
timecode *interface{}
useLatestGames *interface{}
opponentId *interface{}
publicFacing *interface{}
fields *interface{}
opponentId *interface{}
publicFacing *interface{}
fields *interface{}
}
// Comma delimited list of type of calendar types
@ -1340,22 +1354,22 @@ TrackingEventsSchedule Get tracking event schedules
This endpoint allows you to pull schedules for tracking events
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTrackingEventsScheduleRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTrackingEventsScheduleRequest
*/
func (a *ScheduleAPIService) TrackingEventsSchedule(ctx context.Context) ApiTrackingEventsScheduleRequest {
return ApiTrackingEventsScheduleRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) TrackingEventsScheduleExecute(r ApiTrackingEventsScheduleRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.TrackingEventsSchedule")
@ -1481,12 +1495,12 @@ func (a *ScheduleAPIService) TrackingEventsScheduleExecute(r ApiTrackingEventsSc
}
type ApiTuneInRequest struct {
ctx context.Context
ctx context.Context
ApiService *ScheduleAPIService
teamId *interface{}
sportId *interface{}
season *interface{}
fields *interface{}
teamId *interface{}
sportId *interface{}
season *interface{}
fields *interface{}
}
// Unique Team Identifier. Format: 141, 147, etc
@ -1522,22 +1536,22 @@ TuneIn Get postseason TuneIn schedules
This endpoint allows you to pull postseason schedules
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTuneInRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTuneInRequest
*/
func (a *ScheduleAPIService) TuneIn(ctx context.Context) ApiTuneInRequest {
return ApiTuneInRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *ScheduleAPIService) TuneInExecute(r ApiTuneInRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.TuneIn")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,18 +34,17 @@ import (
"strings"
)
// SeasonAPIService SeasonAPI service
type SeasonAPIService service
type ApiAllSeasonsRequest struct {
ctx context.Context
ApiService *SeasonAPIService
divisionId *interface{}
leagueId *interface{}
sportId *interface{}
ctx context.Context
ApiService *SeasonAPIService
divisionId *interface{}
leagueId *interface{}
sportId *interface{}
withGameTypeDates *interface{}
fields *interface{}
fields *interface{}
}
// Unique Division Identifier
@ -72,22 +86,22 @@ AllSeasons View all seasons
This endpoint allows you to view all seasons for a given Division, League or Sport
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAllSeasonsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAllSeasonsRequest
*/
func (a *SeasonAPIService) AllSeasons(ctx context.Context) ApiAllSeasonsRequest {
return ApiAllSeasonsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *SeasonAPIService) AllSeasonsExecute(r ApiAllSeasonsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SeasonAPIService.AllSeasons")
@ -162,13 +176,13 @@ func (a *SeasonAPIService) AllSeasonsExecute(r ApiAllSeasonsRequest) (*http.Resp
}
type ApiSeasonsRequest struct {
ctx context.Context
ApiService *SeasonAPIService
seasonId interface{}
season *interface{}
sportId *interface{}
ctx context.Context
ApiService *SeasonAPIService
seasonId interface{}
season *interface{}
sportId *interface{}
withGameTypeDates *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -204,24 +218,24 @@ Seasons View season info
This endpoint allows you to pull seasons
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param seasonId Season of play
@return ApiSeasonsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param seasonId Season of play
@return ApiSeasonsRequest
*/
func (a *SeasonAPIService) Seasons(ctx context.Context, seasonId interface{}) ApiSeasonsRequest {
return ApiSeasonsRequest{
ApiService: a,
ctx: ctx,
seasonId: seasonId,
ctx: ctx,
seasonId: seasonId,
}
}
// Execute executes the request
func (a *SeasonAPIService) SeasonsExecute(r ApiSeasonsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SeasonAPIService.Seasons")
@ -294,13 +308,13 @@ func (a *SeasonAPIService) SeasonsExecute(r ApiSeasonsRequest) (*http.Response,
}
type ApiSeasons1Request struct {
ctx context.Context
ApiService *SeasonAPIService
seasonId interface{}
season *interface{}
sportId *interface{}
ctx context.Context
ApiService *SeasonAPIService
seasonId interface{}
season *interface{}
sportId *interface{}
withGameTypeDates *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -336,24 +350,24 @@ Seasons1 View season info
This endpoint allows you to pull seasons
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param seasonId Season of play
@return ApiSeasons1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param seasonId Season of play
@return ApiSeasons1Request
*/
func (a *SeasonAPIService) Seasons1(ctx context.Context, seasonId interface{}) ApiSeasons1Request {
return ApiSeasons1Request{
ApiService: a,
ctx: ctx,
seasonId: seasonId,
ctx: ctx,
seasonId: seasonId,
}
}
// Execute executes the request
func (a *SeasonAPIService) Seasons1Execute(r ApiSeasons1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SeasonAPIService.Seasons1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,17 +34,16 @@ import (
"strings"
)
// SkeletalAPIService SkeletalAPI service
type SkeletalAPIService service
type ApiSkeletalChunkedRequest struct {
ctx context.Context
ctx context.Context
ApiService *SkeletalAPIService
gamePk interface{}
playId interface{}
fileName *interface{}
fields *interface{}
gamePk interface{}
playId interface{}
fileName *interface{}
fields *interface{}
}
// Skeletal chunked file name
@ -53,26 +67,26 @@ SkeletalChunked View Skeletal Data by playId and gameId chunked
This endpoint allows you to pull chunked skeletal tracking data by gameId and playId
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@return ApiSkeletalChunkedRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@return ApiSkeletalChunkedRequest
*/
func (a *SkeletalAPIService) SkeletalChunked(ctx context.Context, gamePk interface{}, playId interface{}) ApiSkeletalChunkedRequest {
return ApiSkeletalChunkedRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
playId: playId,
ctx: ctx,
gamePk: gamePk,
playId: playId,
}
}
// Execute executes the request
func (a *SkeletalAPIService) SkeletalChunkedExecute(r ApiSkeletalChunkedRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkeletalAPIService.SkeletalChunked")
@ -141,11 +155,11 @@ func (a *SkeletalAPIService) SkeletalChunkedExecute(r ApiSkeletalChunkedRequest)
}
type ApiSkeletalDataFileNamesRequest struct {
ctx context.Context
ctx context.Context
ApiService *SkeletalAPIService
gamePk interface{}
playId interface{}
fields *interface{}
gamePk interface{}
playId interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -163,26 +177,26 @@ SkeletalDataFileNames View Skeletal Data by playId and gameId files
This endpoint allows you to pull chunked skeletal tracking data by gameId and playId
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@return ApiSkeletalDataFileNamesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique play identifier
@return ApiSkeletalDataFileNamesRequest
*/
func (a *SkeletalAPIService) SkeletalDataFileNames(ctx context.Context, gamePk interface{}, playId interface{}) ApiSkeletalDataFileNamesRequest {
return ApiSkeletalDataFileNamesRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
playId: playId,
ctx: ctx,
gamePk: gamePk,
playId: playId,
}
}
// Execute executes the request
func (a *SkeletalAPIService) SkeletalDataFileNamesExecute(r ApiSkeletalDataFileNamesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkeletalAPIService.SkeletalDataFileNames")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,16 +34,15 @@ import (
"strings"
)
// SportsAPIService SportsAPI service
type SportsAPIService service
type ApiAllSportBallotRequest struct {
ctx context.Context
ctx context.Context
ApiService *SportsAPIService
sportId interface{}
season *interface{}
fields *interface{}
sportId interface{}
season *interface{}
fields *interface{}
}
// season
@ -51,24 +65,24 @@ AllSportBallot Get ALL MLB ballot for sport
This endpoint allows you to get all players for MLB ballot
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiAllSportBallotRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiAllSportBallotRequest
*/
func (a *SportsAPIService) AllSportBallot(ctx context.Context, sportId interface{}) ApiAllSportBallotRequest {
return ApiAllSportBallotRequest{
ApiService: a,
ctx: ctx,
sportId: sportId,
ctx: ctx,
sportId: sportId,
}
}
// Execute executes the request
func (a *SportsAPIService) AllSportBallotExecute(r ApiAllSportBallotRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.AllSportBallot")
@ -136,14 +150,14 @@ func (a *SportsAPIService) AllSportBallotExecute(r ApiAllSportBallotRequest) (*h
}
type ApiSportPlayersRequest struct {
ctx context.Context
ctx context.Context
ApiService *SportsAPIService
sportId interface{}
season *interface{}
gameType *interface{}
hasStats *interface{}
accent *interface{}
fields *interface{}
sportId interface{}
season *interface{}
gameType *interface{}
hasStats *interface{}
accent *interface{}
fields *interface{}
}
// Season of play
@ -185,24 +199,24 @@ SportPlayers Get all players for a sport level
This endpoint allows you to pull all players for a given sport
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiSportPlayersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiSportPlayersRequest
*/
func (a *SportsAPIService) SportPlayers(ctx context.Context, sportId interface{}) ApiSportPlayersRequest {
return ApiSportPlayersRequest{
ApiService: a,
ctx: ctx,
sportId: sportId,
ctx: ctx,
sportId: sportId,
}
}
// Execute executes the request
func (a *SportsAPIService) SportPlayersExecute(r ApiSportPlayersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.SportPlayers")
@ -278,12 +292,12 @@ func (a *SportsAPIService) SportPlayersExecute(r ApiSportPlayersRequest) (*http.
}
type ApiSportsRequest struct {
ctx context.Context
ApiService *SportsAPIService
sportId interface{}
season *interface{}
fields *interface{}
hasStats *interface{}
ctx context.Context
ApiService *SportsAPIService
sportId interface{}
season *interface{}
fields *interface{}
hasStats *interface{}
activeStatus *interface{}
}
@ -320,24 +334,24 @@ Sports Get sports information
This endpoint allows you to pull sports
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiSportsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiSportsRequest
*/
func (a *SportsAPIService) Sports(ctx context.Context, sportId interface{}) ApiSportsRequest {
return ApiSportsRequest{
ApiService: a,
ctx: ctx,
sportId: sportId,
ctx: ctx,
sportId: sportId,
}
}
// Execute executes the request
func (a *SportsAPIService) SportsExecute(r ApiSportsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.Sports")
@ -410,12 +424,12 @@ func (a *SportsAPIService) SportsExecute(r ApiSportsRequest) (*http.Response, er
}
type ApiSports1Request struct {
ctx context.Context
ApiService *SportsAPIService
sportId interface{}
season *interface{}
fields *interface{}
hasStats *interface{}
ctx context.Context
ApiService *SportsAPIService
sportId interface{}
season *interface{}
fields *interface{}
hasStats *interface{}
activeStatus *interface{}
}
@ -452,24 +466,24 @@ Sports1 Get sports information
This endpoint allows you to pull sports
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiSports1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param sportId Top level organization of a sport
@return ApiSports1Request
*/
func (a *SportsAPIService) Sports1(ctx context.Context, sportId interface{}) ApiSports1Request {
return ApiSports1Request{
ApiService: a,
ctx: ctx,
sportId: sportId,
ctx: ctx,
sportId: sportId,
}
}
// Execute executes the request
func (a *SportsAPIService) Sports1Execute(r ApiSports1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.Sports1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,21 +34,20 @@ import (
"strings"
)
// StandingsAPIService StandingsAPI service
type StandingsAPIService service
type ApiStandingsRequest struct {
ctx context.Context
ApiService *StandingsAPIService
standingsType interface{}
leagueId *interface{}
season *interface{}
ctx context.Context
ApiService *StandingsAPIService
standingsType interface{}
leagueId *interface{}
season *interface{}
standingsTypes *interface{}
date *interface{}
teamId *interface{}
includeMLB *interface{}
fields *interface{}
date *interface{}
teamId *interface{}
includeMLB *interface{}
fields *interface{}
}
// Unique League Identifier
@ -87,14 +101,14 @@ Standings View standings for a league
This endpoint allows you to pull standings
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param standingsType Type of season. Available types in /api/v1/standingsTypes
@return ApiStandingsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param standingsType Type of season. Available types in /api/v1/standingsTypes
@return ApiStandingsRequest
*/
func (a *StandingsAPIService) Standings(ctx context.Context, standingsType interface{}) ApiStandingsRequest {
return ApiStandingsRequest{
ApiService: a,
ctx: ctx,
ApiService: a,
ctx: ctx,
standingsType: standingsType,
}
}
@ -102,9 +116,9 @@ func (a *StandingsAPIService) Standings(ctx context.Context, standingsType inter
// Execute executes the request
func (a *StandingsAPIService) StandingsExecute(r ApiStandingsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StandingsAPIService.Standings")
@ -186,16 +200,16 @@ func (a *StandingsAPIService) StandingsExecute(r ApiStandingsRequest) (*http.Res
}
type ApiStandings1Request struct {
ctx context.Context
ApiService *StandingsAPIService
standingsType interface{}
leagueId *interface{}
season *interface{}
ctx context.Context
ApiService *StandingsAPIService
standingsType interface{}
leagueId *interface{}
season *interface{}
standingsTypes *interface{}
date *interface{}
teamId *interface{}
includeMLB *interface{}
fields *interface{}
date *interface{}
teamId *interface{}
includeMLB *interface{}
fields *interface{}
}
// Unique League Identifier
@ -249,14 +263,14 @@ Standings1 View standings for a league
This endpoint allows you to pull standings
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param standingsType Type of season. Available types in /api/v1/standingsTypes
@return ApiStandings1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param standingsType Type of season. Available types in /api/v1/standingsTypes
@return ApiStandings1Request
*/
func (a *StandingsAPIService) Standings1(ctx context.Context, standingsType interface{}) ApiStandings1Request {
return ApiStandings1Request{
ApiService: a,
ctx: ctx,
ApiService: a,
ctx: ctx,
standingsType: standingsType,
}
}
@ -264,9 +278,9 @@ func (a *StandingsAPIService) Standings1(ctx context.Context, standingsType inte
// Execute executes the request
func (a *StandingsAPIService) Standings1Execute(r ApiStandings1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StandingsAPIService.Standings1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,111 +33,110 @@ import (
"net/url"
)
// StatsAPIService StatsAPI service
type StatsAPIService service
type ApiBeastStatsRequest struct {
ctx context.Context
ApiService *StatsAPIService
group *interface{}
gamePks *interface{}
playIds *interface{}
seasons *interface{}
gameTypes *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
teamIds *interface{}
pitcherTeamIds *interface{}
batterTeamIds *interface{}
sportIds *interface{}
pitcherSportIds *interface{}
batterSportIds *interface{}
leagueIds *interface{}
pitcherLeagueIds *interface{}
batterLeagueIds *interface{}
divisionIds *interface{}
pitcherDivisionIds *interface{}
batterDivisionIds *interface{}
pitchersOnTeamIds *interface{}
battersOnTeamIds *interface{}
playerIds *interface{}
playerPool *interface{}
pitcherIds *interface{}
batterIds *interface{}
catcherIds *interface{}
firstBasemanIds *interface{}
secondBasemanIds *interface{}
thirdBasemanIds *interface{}
shortstopIds *interface{}
leftFielderIds *interface{}
centerFielderIds *interface{}
rightFielderIds *interface{}
runnerFirstIds *interface{}
runnerSecondIds *interface{}
runnerThirdIds *interface{}
venueIds *interface{}
pitchHand *interface{}
batSide *interface{}
pitchTypes *interface{}
pitchCodes *interface{}
eventTypes *interface{}
positions *interface{}
primaryPositions *interface{}
minPitchSpeed *interface{}
maxPitchSpeed *interface{}
minSpinRate *interface{}
maxSpinRate *interface{}
minExtension *interface{}
maxExtension *interface{}
ctx context.Context
ApiService *StatsAPIService
group *interface{}
gamePks *interface{}
playIds *interface{}
seasons *interface{}
gameTypes *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
teamIds *interface{}
pitcherTeamIds *interface{}
batterTeamIds *interface{}
sportIds *interface{}
pitcherSportIds *interface{}
batterSportIds *interface{}
leagueIds *interface{}
pitcherLeagueIds *interface{}
batterLeagueIds *interface{}
divisionIds *interface{}
pitcherDivisionIds *interface{}
batterDivisionIds *interface{}
pitchersOnTeamIds *interface{}
battersOnTeamIds *interface{}
playerIds *interface{}
playerPool *interface{}
pitcherIds *interface{}
batterIds *interface{}
catcherIds *interface{}
firstBasemanIds *interface{}
secondBasemanIds *interface{}
thirdBasemanIds *interface{}
shortstopIds *interface{}
leftFielderIds *interface{}
centerFielderIds *interface{}
rightFielderIds *interface{}
runnerFirstIds *interface{}
runnerSecondIds *interface{}
runnerThirdIds *interface{}
venueIds *interface{}
pitchHand *interface{}
batSide *interface{}
pitchTypes *interface{}
pitchCodes *interface{}
eventTypes *interface{}
positions *interface{}
primaryPositions *interface{}
minPitchSpeed *interface{}
maxPitchSpeed *interface{}
minSpinRate *interface{}
maxSpinRate *interface{}
minExtension *interface{}
maxExtension *interface{}
minExitVelocityAgainst *interface{}
maxExitVelocityAgainst *interface{}
minLaunchAngleAgainst *interface{}
maxLaunchAngleAgainst *interface{}
minExitVelocity *interface{}
maxExitVelocity *interface{}
minLaunchAngle *interface{}
maxLaunchAngle *interface{}
minHomeRunDistance *interface{}
maxHomeRunDistance *interface{}
minHitDistance *interface{}
maxHitDistance *interface{}
minHangTime *interface{}
maxHangTime *interface{}
minHitProbability *interface{}
maxHitProbability *interface{}
minCatchProbability *interface{}
maxCatchProbability *interface{}
minAttackAngle *interface{}
maxAttackAngle *interface{}
minBatSpeed *interface{}
maxBatSpeed *interface{}
minHomeRunXBallparks *interface{}
maxHomeRunXBallparks *interface{}
isBarrel *interface{}
hitTrajectories *interface{}
limit *interface{}
offset *interface{}
groupBy *interface{}
compareOver *interface{}
sortStat *interface{}
sortModifier *interface{}
sortOrder *interface{}
percentile *interface{}
minOccurrences *interface{}
minPlateAppearances *interface{}
minInnings *interface{}
qualifierRate *interface{}
sitCodes *interface{}
showTotals *interface{}
includeNullMetrics *interface{}
statFields *interface{}
atBatNumbers *interface{}
pitchNumbers *interface{}
fields *interface{}
debug *interface{}
activeStatus *interface{}
minLaunchAngleAgainst *interface{}
maxLaunchAngleAgainst *interface{}
minExitVelocity *interface{}
maxExitVelocity *interface{}
minLaunchAngle *interface{}
maxLaunchAngle *interface{}
minHomeRunDistance *interface{}
maxHomeRunDistance *interface{}
minHitDistance *interface{}
maxHitDistance *interface{}
minHangTime *interface{}
maxHangTime *interface{}
minHitProbability *interface{}
maxHitProbability *interface{}
minCatchProbability *interface{}
maxCatchProbability *interface{}
minAttackAngle *interface{}
maxAttackAngle *interface{}
minBatSpeed *interface{}
maxBatSpeed *interface{}
minHomeRunXBallparks *interface{}
maxHomeRunXBallparks *interface{}
isBarrel *interface{}
hitTrajectories *interface{}
limit *interface{}
offset *interface{}
groupBy *interface{}
compareOver *interface{}
sortStat *interface{}
sortModifier *interface{}
sortOrder *interface{}
percentile *interface{}
minOccurrences *interface{}
minPlateAppearances *interface{}
minInnings *interface{}
qualifierRate *interface{}
sitCodes *interface{}
showTotals *interface{}
includeNullMetrics *interface{}
statFields *interface{}
atBatNumbers *interface{}
pitchNumbers *interface{}
fields *interface{}
debug *interface{}
activeStatus *interface{}
}
// Category of statistic to return. Available types in /api/v1/statGroups
@ -719,22 +733,22 @@ func (r ApiBeastStatsRequest) Execute() (*http.Response, error) {
/*
BeastStats View stats from search
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBeastStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBeastStatsRequest
*/
func (a *StatsAPIService) BeastStats(ctx context.Context) ApiBeastStatsRequest {
return ApiBeastStatsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) BeastStatsExecute(r ApiBeastStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.BeastStats")
@ -1089,11 +1103,11 @@ func (a *StatsAPIService) BeastStatsExecute(r ApiBeastStatsRequest) (*http.Respo
}
type ApiGetOutsAboveAverageRequest struct {
ctx context.Context
ctx context.Context
ApiService *StatsAPIService
gamePk *interface{}
timecode *interface{}
fields *interface{}
gamePk *interface{}
timecode *interface{}
fields *interface{}
}
func (r ApiGetOutsAboveAverageRequest) GamePk(gamePk interface{}) ApiGetOutsAboveAverageRequest {
@ -1119,22 +1133,22 @@ func (r ApiGetOutsAboveAverageRequest) Execute() (*http.Response, error) {
/*
GetOutsAboveAverage Get outs above average for the current batter
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOutsAboveAverageRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOutsAboveAverageRequest
*/
func (a *StatsAPIService) GetOutsAboveAverage(ctx context.Context) ApiGetOutsAboveAverageRequest {
return ApiGetOutsAboveAverageRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) GetOutsAboveAverageExecute(r ApiGetOutsAboveAverageRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetOutsAboveAverage")
@ -1204,11 +1218,11 @@ func (a *StatsAPIService) GetOutsAboveAverageExecute(r ApiGetOutsAboveAverageReq
}
type ApiGetSprayChartRequest struct {
ctx context.Context
ctx context.Context
ApiService *StatsAPIService
gamePk *interface{}
timecode *interface{}
fields *interface{}
gamePk *interface{}
timecode *interface{}
fields *interface{}
}
func (r ApiGetSprayChartRequest) GamePk(gamePk interface{}) ApiGetSprayChartRequest {
@ -1234,22 +1248,22 @@ func (r ApiGetSprayChartRequest) Execute() (*http.Response, error) {
/*
GetSprayChart Get the spray chart info for the current batter
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetSprayChartRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetSprayChartRequest
*/
func (a *StatsAPIService) GetSprayChart(ctx context.Context) ApiGetSprayChartRequest {
return ApiGetSprayChartRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) GetSprayChartExecute(r ApiGetSprayChartRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetSprayChart")
@ -1319,10 +1333,10 @@ func (a *StatsAPIService) GetSprayChartExecute(r ApiGetSprayChartRequest) (*http
}
type ApiGetStolenBaseProbabilityRequest struct {
ctx context.Context
ctx context.Context
ApiService *StatsAPIService
gamePk *interface{}
timecode *interface{}
gamePk *interface{}
timecode *interface{}
}
func (r ApiGetStolenBaseProbabilityRequest) GamePk(gamePk interface{}) ApiGetStolenBaseProbabilityRequest {
@ -1342,22 +1356,22 @@ func (r ApiGetStolenBaseProbabilityRequest) Execute() (*http.Response, error) {
/*
GetStolenBaseProbability Get the probability of a hit for the given hit data
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetStolenBaseProbabilityRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetStolenBaseProbabilityRequest
*/
func (a *StatsAPIService) GetStolenBaseProbability(ctx context.Context) ApiGetStolenBaseProbabilityRequest {
return ApiGetStolenBaseProbabilityRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) GetStolenBaseProbabilityExecute(r ApiGetStolenBaseProbabilityRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetStolenBaseProbability")
@ -1424,44 +1438,44 @@ func (a *StatsAPIService) GetStolenBaseProbabilityExecute(r ApiGetStolenBaseProb
}
type ApiGroupedStatsRequest struct {
ctx context.Context
ApiService *StatsAPIService
stats *interface{}
group *interface{}
personId *interface{}
teamId *interface{}
teamIds *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
sportIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
metrics *interface{}
gamePk *interface{}
batterTeamId *interface{}
pitcherTeamId *interface{}
batterId *interface{}
pitcherId *interface{}
sitCodes *interface{}
combineSits *interface{}
opposingTeamId *interface{}
fields *interface{}
sortStat *interface{}
order *interface{}
playerPool *interface{}
position *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
ctx context.Context
ApiService *StatsAPIService
stats *interface{}
group *interface{}
personId *interface{}
teamId *interface{}
teamIds *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
sportIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
metrics *interface{}
gamePk *interface{}
batterTeamId *interface{}
pitcherTeamId *interface{}
batterId *interface{}
pitcherId *interface{}
sitCodes *interface{}
combineSits *interface{}
opposingTeamId *interface{}
fields *interface{}
sortStat *interface{}
order *interface{}
playerPool *interface{}
position *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
excludeTradedPlayers *interface{}
offset *interface{}
limit *interface{}
statFields *interface{}
sortField *interface{}
offset *interface{}
limit *interface{}
statFields *interface{}
sortField *interface{}
}
// Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
@ -1687,22 +1701,22 @@ func (r ApiGroupedStatsRequest) Execute() (*http.Response, error) {
/*
GroupedStats View grouped stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGroupedStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGroupedStatsRequest
*/
func (a *StatsAPIService) GroupedStats(ctx context.Context) ApiGroupedStatsRequest {
return ApiGroupedStatsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) GroupedStatsExecute(r ApiGroupedStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GroupedStats")
@ -1872,35 +1886,35 @@ func (a *StatsAPIService) GroupedStatsExecute(r ApiGroupedStatsRequest) (*http.R
}
type ApiLeaders2Request struct {
ctx context.Context
ApiService *StatsAPIService
ctx context.Context
ApiService *StatsAPIService
leaderCategories *interface{}
leaderGameTypes *interface{}
statGroup *interface{}
season *interface{}
expand *interface{}
sportId *interface{}
sportIds *interface{}
stats *interface{}
limit *interface{}
offset *interface{}
teamId *interface{}
teamIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
playerPool *interface{}
statType *interface{}
playerActive *interface{}
position *interface{}
sitCodes *interface{}
opposingTeamId *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
groupBy *interface{}
fields *interface{}
leaderGameTypes *interface{}
statGroup *interface{}
season *interface{}
expand *interface{}
sportId *interface{}
sportIds *interface{}
stats *interface{}
limit *interface{}
offset *interface{}
teamId *interface{}
teamIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
playerPool *interface{}
statType *interface{}
playerActive *interface{}
position *interface{}
sitCodes *interface{}
opposingTeamId *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
groupBy *interface{}
fields *interface{}
}
func (r ApiLeaders2Request) LeaderCategories(leaderCategories interface{}) ApiLeaders2Request {
@ -2045,22 +2059,22 @@ func (r ApiLeaders2Request) Execute() (*http.Response, error) {
/*
Leaders2 Get leaders for a statistic
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiLeaders2Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiLeaders2Request
*/
func (a *StatsAPIService) Leaders2(ctx context.Context) ApiLeaders2Request {
return ApiLeaders2Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) Leaders2Execute(r ApiLeaders2Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.Leaders2")
@ -2201,44 +2215,44 @@ func (a *StatsAPIService) Leaders2Execute(r ApiLeaders2Request) (*http.Response,
}
type ApiMetricStatsRequest struct {
ctx context.Context
ApiService *StatsAPIService
stats *interface{}
metrics *interface{}
personId *interface{}
personIds *interface{}
batterId *interface{}
pitcherId *interface{}
teamId *interface{}
group *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
opposingTeamId *interface{}
ctx context.Context
ApiService *StatsAPIService
stats *interface{}
metrics *interface{}
personId *interface{}
personIds *interface{}
batterId *interface{}
pitcherId *interface{}
teamId *interface{}
group *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
opposingTeamId *interface{}
opposingPlayerId *interface{}
position *interface{}
eventType *interface{}
pitchType *interface{}
hitTrajectory *interface{}
batSide *interface{}
pitchHand *interface{}
venueId *interface{}
gamePk *interface{}
minValue *interface{}
maxValue *interface{}
percentile *interface{}
minOccurrences *interface{}
offset *interface{}
limit *interface{}
order *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
gameType *interface{}
batterTeamId *interface{}
pitcherTeamId *interface{}
fields *interface{}
debug *interface{}
position *interface{}
eventType *interface{}
pitchType *interface{}
hitTrajectory *interface{}
batSide *interface{}
pitchHand *interface{}
venueId *interface{}
gamePk *interface{}
minValue *interface{}
maxValue *interface{}
percentile *interface{}
minOccurrences *interface{}
offset *interface{}
limit *interface{}
order *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
gameType *interface{}
batterTeamId *interface{}
pitcherTeamId *interface{}
fields *interface{}
debug *interface{}
}
// Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
@ -2463,22 +2477,22 @@ func (r ApiMetricStatsRequest) Execute() (*http.Response, error) {
/*
MetricStats View metric stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMetricStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiMetricStatsRequest
*/
func (a *StatsAPIService) MetricStats(ctx context.Context) ApiMetricStatsRequest {
return ApiMetricStatsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) MetricStatsExecute(r ApiMetricStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.MetricStats")
@ -2648,42 +2662,42 @@ func (a *StatsAPIService) MetricStatsExecute(r ApiMetricStatsRequest) (*http.Res
}
type ApiStats2Request struct {
ctx context.Context
ApiService *StatsAPIService
stats *interface{}
group *interface{}
personId *interface{}
teamId *interface{}
teamIds *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
sportIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
metrics *interface{}
gamePk *interface{}
batterTeamId *interface{}
pitcherTeamId *interface{}
batterId *interface{}
pitcherId *interface{}
sitCodes *interface{}
combineSits *interface{}
opposingTeamId *interface{}
fields *interface{}
sortStat *interface{}
order *interface{}
playerPool *interface{}
position *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
ctx context.Context
ApiService *StatsAPIService
stats *interface{}
group *interface{}
personId *interface{}
teamId *interface{}
teamIds *interface{}
gameType *interface{}
season *interface{}
seasons *interface{}
sportId *interface{}
sportIds *interface{}
leagueId *interface{}
leagueIds *interface{}
leagueListId *interface{}
metrics *interface{}
gamePk *interface{}
batterTeamId *interface{}
pitcherTeamId *interface{}
batterId *interface{}
pitcherId *interface{}
sitCodes *interface{}
combineSits *interface{}
opposingTeamId *interface{}
fields *interface{}
sortStat *interface{}
order *interface{}
playerPool *interface{}
position *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
gamesBack *interface{}
excludeTradedPlayers *interface{}
offset *interface{}
limit *interface{}
offset *interface{}
limit *interface{}
}
// Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes
@ -2896,22 +2910,22 @@ func (r ApiStats2Request) Execute() (*http.Response, error) {
/*
Stats2 View stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStats2Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStats2Request
*/
func (a *StatsAPIService) Stats2(ctx context.Context) ApiStats2Request {
return ApiStats2Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StatsAPIService) Stats2Execute(r ApiStats2Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.Stats2")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,30 +33,29 @@ import (
"net/url"
)
// StreaksAPIService StreaksAPI service
type StreaksAPIService service
type ApiGetStreaksRequest struct {
ctx context.Context
ApiService *StreaksAPIService
streakOrg *interface{}
streakStat *interface{}
streakSpan *interface{}
streakLevel *interface{}
ctx context.Context
ApiService *StreaksAPIService
streakOrg *interface{}
streakStat *interface{}
streakSpan *interface{}
streakLevel *interface{}
streakThreshold *interface{}
inverse *interface{}
startersOnly *interface{}
statGroup *interface{}
gameType *interface{}
season *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
activeStreak *interface{}
limit *interface{}
fields *interface{}
playerId *interface{}
inverse *interface{}
startersOnly *interface{}
statGroup *interface{}
gameType *interface{}
season *interface{}
teamId *interface{}
leagueId *interface{}
sportId *interface{}
activeStreak *interface{}
limit *interface{}
fields *interface{}
playerId *interface{}
}
func (r ApiGetStreaksRequest) StreakOrg(streakOrg interface{}) ApiGetStreaksRequest {
@ -146,22 +160,22 @@ func (r ApiGetStreaksRequest) Execute() (*http.Response, error) {
/*
GetStreaks View streaks
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetStreaksRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetStreaksRequest
*/
func (a *StreaksAPIService) GetStreaks(ctx context.Context) ApiGetStreaksRequest {
return ApiGetStreaksRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StreaksAPIService) GetStreaksExecute(r ApiGetStreaksRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreaksAPIService.GetStreaks")
@ -272,7 +286,7 @@ func (a *StreaksAPIService) GetStreaksExecute(r ApiGetStreaksRequest) (*http.Res
}
type ApiStreakTypesRequest struct {
ctx context.Context
ctx context.Context
ApiService *StreaksAPIService
}
@ -283,22 +297,22 @@ func (r ApiStreakTypesRequest) Execute() (*http.Response, error) {
/*
StreakTypes View streaks parameter options
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreakTypesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreakTypesRequest
*/
func (a *StreaksAPIService) StreakTypes(ctx context.Context) ApiStreakTypesRequest {
return ApiStreakTypesRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *StreaksAPIService) StreakTypesExecute(r ApiStreakTypesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreaksAPIService.StreakTypes")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,19 +34,18 @@ import (
"strings"
)
// TeamsAPIService TeamsAPI service
type TeamsAPIService service
type ApiAffiliatesRequest struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamIds *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
fields *interface{}
teamId interface{}
teamIds *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
fields *interface{}
}
// Unique Team Identifier. Format: 141, 147, etc
@ -71,24 +85,24 @@ func (r ApiAffiliatesRequest) Execute() (*http.Response, error) {
/*
Affiliates View team and affiliate teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAffiliatesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAffiliatesRequest
*/
func (a *TeamsAPIService) Affiliates(ctx context.Context, teamId interface{}) ApiAffiliatesRequest {
return ApiAffiliatesRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) AffiliatesExecute(r ApiAffiliatesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Affiliates")
@ -164,14 +178,14 @@ func (a *TeamsAPIService) AffiliatesExecute(r ApiAffiliatesRequest) (*http.Respo
}
type ApiAffiliates1Request struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamIds *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
fields *interface{}
teamId interface{}
teamIds *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
fields *interface{}
}
// Unique Team Identifier. Format: 141, 147, etc
@ -211,24 +225,24 @@ func (r ApiAffiliates1Request) Execute() (*http.Response, error) {
/*
Affiliates1 View team and affiliate teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAffiliates1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAffiliates1Request
*/
func (a *TeamsAPIService) Affiliates1(ctx context.Context, teamId interface{}) ApiAffiliates1Request {
return ApiAffiliates1Request{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) Affiliates1Execute(r ApiAffiliates1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Affiliates1")
@ -304,13 +318,13 @@ func (a *TeamsAPIService) Affiliates1Execute(r ApiAffiliates1Request) (*http.Res
}
type ApiAllTeamsRequest struct {
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamIds *interface{}
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamIds *interface{}
startSeason *interface{}
endSeason *interface{}
fields *interface{}
endSeason *interface{}
fields *interface{}
}
// Comma delimited list of Unique Team identifiers
@ -343,24 +357,24 @@ func (r ApiAllTeamsRequest) Execute() (*http.Response, error) {
/*
AllTeams View historical records for a list of teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAllTeamsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAllTeamsRequest
*/
func (a *TeamsAPIService) AllTeams(ctx context.Context, teamId interface{}) ApiAllTeamsRequest {
return ApiAllTeamsRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) AllTeamsExecute(r ApiAllTeamsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.AllTeams")
@ -433,13 +447,13 @@ func (a *TeamsAPIService) AllTeamsExecute(r ApiAllTeamsRequest) (*http.Response,
}
type ApiAllTeams1Request struct {
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamIds *interface{}
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamIds *interface{}
startSeason *interface{}
endSeason *interface{}
fields *interface{}
endSeason *interface{}
fields *interface{}
}
// Comma delimited list of Unique Team identifiers
@ -472,24 +486,24 @@ func (r ApiAllTeams1Request) Execute() (*http.Response, error) {
/*
AllTeams1 View historical records for a list of teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAllTeams1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAllTeams1Request
*/
func (a *TeamsAPIService) AllTeams1(ctx context.Context, teamId interface{}) ApiAllTeams1Request {
return ApiAllTeams1Request{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) AllTeams1Execute(r ApiAllTeams1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.AllTeams1")
@ -562,12 +576,12 @@ func (a *TeamsAPIService) AllTeams1Execute(r ApiAllTeams1Request) (*http.Respons
}
type ApiAlumniRequest struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
group *interface{}
fields *interface{}
teamId interface{}
season *interface{}
group *interface{}
fields *interface{}
}
// Season of play
@ -594,24 +608,24 @@ func (r ApiAlumniRequest) Execute() (*http.Response, error) {
/*
Alumni View all team alumni
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAlumniRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiAlumniRequest
*/
func (a *TeamsAPIService) Alumni(ctx context.Context, teamId interface{}) ApiAlumniRequest {
return ApiAlumniRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) AlumniExecute(r ApiAlumniRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Alumni")
@ -682,12 +696,12 @@ func (a *TeamsAPIService) AlumniExecute(r ApiAlumniRequest) (*http.Response, err
}
type ApiCoachesRequest struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
date *interface{}
fields *interface{}
teamId interface{}
season *interface{}
date *interface{}
fields *interface{}
}
// Season of play
@ -714,24 +728,24 @@ func (r ApiCoachesRequest) Execute() (*http.Response, error) {
/*
Coaches View all coaches for a team
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiCoachesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiCoachesRequest
*/
func (a *TeamsAPIService) Coaches(ctx context.Context, teamId interface{}) ApiCoachesRequest {
return ApiCoachesRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) CoachesExecute(r ApiCoachesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Coaches")
@ -801,17 +815,17 @@ func (a *TeamsAPIService) CoachesExecute(r ApiCoachesRequest) (*http.Response, e
}
type ApiLeadersRequest struct {
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
leaderCategories *interface{}
season *interface{}
leaderGameTypes *interface{}
expand *interface{}
limit *interface{}
offset *interface{}
playerPool *interface{}
fields *interface{}
season *interface{}
leaderGameTypes *interface{}
expand *interface{}
limit *interface{}
offset *interface{}
playerPool *interface{}
fields *interface{}
}
func (r ApiLeadersRequest) LeaderCategories(leaderCategories interface{}) ApiLeadersRequest {
@ -861,24 +875,24 @@ func (r ApiLeadersRequest) Execute() (*http.Response, error) {
/*
Leaders View team stat leaders
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiLeadersRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId
@return ApiLeadersRequest
*/
func (a *TeamsAPIService) Leaders(ctx context.Context, teamId interface{}) ApiLeadersRequest {
return ApiLeadersRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) LeadersExecute(r ApiLeadersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Leaders")
@ -963,27 +977,27 @@ func (a *TeamsAPIService) LeadersExecute(r ApiLeadersRequest) (*http.Response, e
}
type ApiLeaders1Request struct {
ctx context.Context
ApiService *TeamsAPIService
ctx context.Context
ApiService *TeamsAPIService
leaderCategories *interface{}
gameTypes *interface{}
stats *interface{}
statType *interface{}
sportId *interface{}
sportIds *interface{}
leagueId *interface{}
leagueIds *interface{}
season *interface{}
statGroup *interface{}
group *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
sitCodes *interface{}
opposingTeamId *interface{}
limit *interface{}
offset *interface{}
fields *interface{}
gameTypes *interface{}
stats *interface{}
statType *interface{}
sportId *interface{}
sportIds *interface{}
leagueId *interface{}
leagueIds *interface{}
season *interface{}
statGroup *interface{}
group *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
sitCodes *interface{}
opposingTeamId *interface{}
limit *interface{}
offset *interface{}
fields *interface{}
}
// TBD
@ -1105,22 +1119,22 @@ func (r ApiLeaders1Request) Execute() (*http.Response, error) {
/*
Leaders1 View leaders for team stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiLeaders1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiLeaders1Request
*/
func (a *TeamsAPIService) Leaders1(ctx context.Context) ApiLeaders1Request {
return ApiLeaders1Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *TeamsAPIService) Leaders1Execute(r ApiLeaders1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Leaders1")
@ -1237,12 +1251,12 @@ func (a *TeamsAPIService) Leaders1Execute(r ApiLeaders1Request) (*http.Response,
}
type ApiPersonnelRequest struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
date *interface{}
fields *interface{}
teamId interface{}
season *interface{}
date *interface{}
fields *interface{}
}
// Season of play
@ -1269,24 +1283,24 @@ func (r ApiPersonnelRequest) Execute() (*http.Response, error) {
/*
Personnel View all coaches for a team
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiPersonnelRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiPersonnelRequest
*/
func (a *TeamsAPIService) Personnel(ctx context.Context, teamId interface{}) ApiPersonnelRequest {
return ApiPersonnelRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) PersonnelExecute(r ApiPersonnelRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Personnel")
@ -1356,14 +1370,14 @@ func (a *TeamsAPIService) PersonnelExecute(r ApiPersonnelRequest) (*http.Respons
}
type ApiRosterRequest struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamId interface{}
rosterType interface{}
season *interface{}
date *interface{}
gameType *interface{}
fields *interface{}
season *interface{}
date *interface{}
gameType *interface{}
fields *interface{}
}
// Season of play
@ -1399,16 +1413,16 @@ Roster View a teams roster
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@param rosterType Type of roster. Available types in /api/v1/rosterTypes
@return ApiRosterRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@param rosterType Type of roster. Available types in /api/v1/rosterTypes
@return ApiRosterRequest
*/
func (a *TeamsAPIService) Roster(ctx context.Context, teamId interface{}, rosterType interface{}) ApiRosterRequest {
return ApiRosterRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
rosterType: rosterType,
}
}
@ -1416,9 +1430,9 @@ func (a *TeamsAPIService) Roster(ctx context.Context, teamId interface{}, roster
// Execute executes the request
func (a *TeamsAPIService) RosterExecute(r ApiRosterRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Roster")
@ -1492,14 +1506,14 @@ func (a *TeamsAPIService) RosterExecute(r ApiRosterRequest) (*http.Response, err
}
type ApiRoster1Request struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
teamId interface{}
rosterType interface{}
season *interface{}
date *interface{}
gameType *interface{}
fields *interface{}
season *interface{}
date *interface{}
gameType *interface{}
fields *interface{}
}
// Season of play
@ -1535,16 +1549,16 @@ Roster1 View a teams roster
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@param rosterType Type of roster. Available types in /api/v1/rosterTypes
@return ApiRoster1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@param rosterType Type of roster. Available types in /api/v1/rosterTypes
@return ApiRoster1Request
*/
func (a *TeamsAPIService) Roster1(ctx context.Context, teamId interface{}, rosterType interface{}) ApiRoster1Request {
return ApiRoster1Request{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
rosterType: rosterType,
}
}
@ -1552,9 +1566,9 @@ func (a *TeamsAPIService) Roster1(ctx context.Context, teamId interface{}, roste
// Execute executes the request
func (a *TeamsAPIService) Roster1Execute(r ApiRoster1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Roster1")
@ -1628,23 +1642,23 @@ func (a *TeamsAPIService) Roster1Execute(r ApiRoster1Request) (*http.Response, e
}
type ApiStatsRequest struct {
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
group *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
stats *interface{}
sortStat *interface{}
order *interface{}
groupBy *interface{}
opposingTeamId *interface{}
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
group *interface{}
sportId *interface{}
season *interface{}
gameType *interface{}
stats *interface{}
sortStat *interface{}
order *interface{}
groupBy *interface{}
opposingTeamId *interface{}
opposingPlayerId *interface{}
sitCodes *interface{}
startDate *interface{}
endDate *interface{}
fields *interface{}
sitCodes *interface{}
startDate *interface{}
endDate *interface{}
fields *interface{}
}
// Category of statistic to return. Available types in /api/v1/statGroups
@ -1738,24 +1752,24 @@ func (r ApiStatsRequest) Execute() (*http.Response, error) {
/*
Stats View a teams stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiStatsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiStatsRequest
*/
func (a *TeamsAPIService) Stats(ctx context.Context, teamId interface{}) ApiStatsRequest {
return ApiStatsRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) StatsExecute(r ApiStatsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Stats")
@ -1859,26 +1873,26 @@ func (a *TeamsAPIService) StatsExecute(r ApiStatsRequest) (*http.Response, error
}
type ApiStats1Request struct {
ctx context.Context
ApiService *TeamsAPIService
group *interface{}
gameType *interface{}
stats *interface{}
sportId *interface{}
sportIds *interface{}
leagueIds *interface{}
season *interface{}
sortStat *interface{}
order *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
sitCodes *interface{}
combineSits *interface{}
ctx context.Context
ApiService *TeamsAPIService
group *interface{}
gameType *interface{}
stats *interface{}
sportId *interface{}
sportIds *interface{}
leagueIds *interface{}
season *interface{}
sortStat *interface{}
order *interface{}
startDate *interface{}
endDate *interface{}
daysBack *interface{}
sitCodes *interface{}
combineSits *interface{}
opposingTeamId *interface{}
offset *interface{}
limit *interface{}
fields *interface{}
offset *interface{}
limit *interface{}
fields *interface{}
}
// Category of statistic to return. Available types in /api/v1/statGroups
@ -1995,22 +2009,22 @@ func (r ApiStats1Request) Execute() (*http.Response, error) {
/*
Stats1 View a teams stats
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStats1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStats1Request
*/
func (a *TeamsAPIService) Stats1(ctx context.Context) ApiStats1Request {
return ApiStats1Request{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *TeamsAPIService) Stats1Execute(r ApiStats1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Stats1")
@ -2125,19 +2139,19 @@ func (a *TeamsAPIService) Stats1Execute(r ApiStats1Request) (*http.Response, err
}
type ApiTeamsRequest struct {
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
sportId *interface{}
divisionId *interface{}
gameType *interface{}
leagueIds *interface{}
sportIds *interface{}
activeStatus *interface{}
leagueListId *interface{}
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
sportId *interface{}
divisionId *interface{}
gameType *interface{}
leagueIds *interface{}
sportIds *interface{}
activeStatus *interface{}
leagueListId *interface{}
allStarStatuses *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -2208,24 +2222,24 @@ Teams View info for all teams
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiTeamsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiTeamsRequest
*/
func (a *TeamsAPIService) Teams(ctx context.Context, teamId interface{}) ApiTeamsRequest {
return ApiTeamsRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) TeamsExecute(r ApiTeamsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Teams")
@ -2316,19 +2330,19 @@ func (a *TeamsAPIService) TeamsExecute(r ApiTeamsRequest) (*http.Response, error
}
type ApiTeams1Request struct {
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
sportId *interface{}
divisionId *interface{}
gameType *interface{}
leagueIds *interface{}
sportIds *interface{}
activeStatus *interface{}
leagueListId *interface{}
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
sportId *interface{}
divisionId *interface{}
gameType *interface{}
leagueIds *interface{}
sportIds *interface{}
activeStatus *interface{}
leagueListId *interface{}
allStarStatuses *interface{}
fields *interface{}
fields *interface{}
}
// Season of play
@ -2399,24 +2413,24 @@ Teams1 View info for all teams
This endpoint allows you to pull teams
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiTeams1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiTeams1Request
*/
func (a *TeamsAPIService) Teams1(ctx context.Context, teamId interface{}) ApiTeams1Request {
return ApiTeams1Request{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) Teams1Execute(r ApiTeams1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Teams1")
@ -2507,12 +2521,12 @@ func (a *TeamsAPIService) Teams1Execute(r ApiTeams1Request) (*http.Response, err
}
type ApiUpdateAlumniRequest struct {
ctx context.Context
ctx context.Context
ApiService *TeamsAPIService
teamId interface{}
season *interface{}
group *interface{}
fields *interface{}
teamId interface{}
season *interface{}
group *interface{}
fields *interface{}
}
// Season of play
@ -2539,24 +2553,24 @@ func (r ApiUpdateAlumniRequest) Execute() (*http.Response, error) {
/*
UpdateAlumni Method for UpdateAlumni
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiUpdateAlumniRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param teamId Unique Team Identifier. Format: 141, 147, etc
@return ApiUpdateAlumniRequest
*/
func (a *TeamsAPIService) UpdateAlumni(ctx context.Context, teamId interface{}) ApiUpdateAlumniRequest {
return ApiUpdateAlumniRequest{
ApiService: a,
ctx: ctx,
teamId: teamId,
ctx: ctx,
teamId: teamId,
}
}
// Execute executes the request
func (a *TeamsAPIService) UpdateAlumniExecute(r ApiUpdateAlumniRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.UpdateAlumni")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,26 +33,25 @@ import (
"net/url"
)
// TransactionsAPIService TransactionsAPI service
type TransactionsAPIService service
type ApiTransactionsRequest struct {
ctx context.Context
ApiService *TransactionsAPIService
leagueId *interface{}
sportId *interface{}
teamId *interface{}
playerId *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
transactionIds *interface{}
ctx context.Context
ApiService *TransactionsAPIService
leagueId *interface{}
sportId *interface{}
teamId *interface{}
playerId *interface{}
date *interface{}
startDate *interface{}
endDate *interface{}
transactionIds *interface{}
transactionTypes *interface{}
divisionIds *interface{}
order *interface{}
limit *interface{}
fields *interface{}
divisionIds *interface{}
order *interface{}
limit *interface{}
fields *interface{}
}
// Comma delimited list of Unique league identifiers
@ -122,22 +136,22 @@ Transactions View transaction info
This endpoint allows you to pull transactions.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTransactionsRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiTransactionsRequest
*/
func (a *TransactionsAPIService) Transactions(ctx context.Context) ApiTransactionsRequest {
return ApiTransactionsRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *TransactionsAPIService) TransactionsExecute(r ApiTransactionsRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.Transactions")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -18,15 +33,14 @@ import (
"net/url"
)
// UniformsAPIService UniformsAPI service
type UniformsAPIService service
type ApiUniformsByGameRequest struct {
ctx context.Context
ctx context.Context
ApiService *UniformsAPIService
gamePks *interface{}
fields *interface{}
gamePks *interface{}
fields *interface{}
}
// Comma delimited list of unique primary keys
@ -50,22 +64,22 @@ UniformsByGame View Game Uniform info
This endpoint allows you to pull team uniform data for a game
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUniformsByGameRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUniformsByGameRequest
*/
func (a *UniformsAPIService) UniformsByGame(ctx context.Context) ApiUniformsByGameRequest {
return ApiUniformsByGameRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *UniformsAPIService) UniformsByGameExecute(r ApiUniformsByGameRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UniformsAPIService.UniformsByGame")
@ -132,11 +146,11 @@ func (a *UniformsAPIService) UniformsByGameExecute(r ApiUniformsByGameRequest) (
}
type ApiUniformsByTeamRequest struct {
ctx context.Context
ctx context.Context
ApiService *UniformsAPIService
teamIds *interface{}
season *interface{}
fields *interface{}
teamIds *interface{}
season *interface{}
fields *interface{}
}
func (r ApiUniformsByTeamRequest) TeamIds(teamIds interface{}) ApiUniformsByTeamRequest {
@ -165,22 +179,22 @@ UniformsByTeam View Team Uniform info
This endpoint allows you to pull team uniform data for a season
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUniformsByTeamRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUniformsByTeamRequest
*/
func (a *UniformsAPIService) UniformsByTeam(ctx context.Context) ApiUniformsByTeamRequest {
return ApiUniformsByTeamRequest{
ApiService: a,
ctx: ctx,
ctx: ctx,
}
}
// Execute executes the request
func (a *UniformsAPIService) UniformsByTeamExecute(r ApiUniformsByTeamRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UniformsAPIService.UniformsByTeam")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,26 +34,25 @@ import (
"strings"
)
// VenuesAPIService VenuesAPI service
type VenuesAPIService service
type ApiVenuesRequest struct {
ctx context.Context
ApiService *VenuesAPIService
venueId interface{}
venueIds *interface{}
leagueId *interface{}
leagueIds *interface{}
gameType *interface{}
gameTypes *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
active *interface{}
ctx context.Context
ApiService *VenuesAPIService
venueId interface{}
venueIds *interface{}
leagueId *interface{}
leagueIds *interface{}
gameType *interface{}
gameTypes *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
active *interface{}
includeEvents *interface{}
sportId *interface{}
sportIds *interface{}
sportId *interface{}
sportIds *interface{}
}
// Comma delimited list of Unique venue identifiers
@ -121,24 +135,24 @@ Venues View venue info
This endpoint allows you to pull venues
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiVenuesRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiVenuesRequest
*/
func (a *VenuesAPIService) Venues(ctx context.Context, venueId interface{}) ApiVenuesRequest {
return ApiVenuesRequest{
ApiService: a,
ctx: ctx,
venueId: venueId,
ctx: ctx,
venueId: venueId,
}
}
// Execute executes the request
func (a *VenuesAPIService) VenuesExecute(r ApiVenuesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VenuesAPIService.Venues")
@ -235,21 +249,21 @@ func (a *VenuesAPIService) VenuesExecute(r ApiVenuesRequest) (*http.Response, er
}
type ApiVenues1Request struct {
ctx context.Context
ApiService *VenuesAPIService
venueId interface{}
venueIds *interface{}
leagueId *interface{}
leagueIds *interface{}
gameType *interface{}
gameTypes *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
active *interface{}
ctx context.Context
ApiService *VenuesAPIService
venueId interface{}
venueIds *interface{}
leagueId *interface{}
leagueIds *interface{}
gameType *interface{}
gameTypes *interface{}
season *interface{}
seasons *interface{}
fields *interface{}
active *interface{}
includeEvents *interface{}
sportId *interface{}
sportIds *interface{}
sportId *interface{}
sportIds *interface{}
}
// Comma delimited list of Unique venue identifiers
@ -332,24 +346,24 @@ Venues1 View venue info
This endpoint allows you to pull venues
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiVenues1Request
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiVenues1Request
*/
func (a *VenuesAPIService) Venues1(ctx context.Context, venueId interface{}) ApiVenues1Request {
return ApiVenues1Request{
ApiService: a,
ctx: ctx,
venueId: venueId,
ctx: ctx,
venueId: venueId,
}
}
// Execute executes the request
func (a *VenuesAPIService) Venues1Execute(r ApiVenues1Request) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VenuesAPIService.Venues1")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -19,15 +34,14 @@ import (
"strings"
)
// WeatherAPIService WeatherAPI service
type WeatherAPIService service
type ApiWeatherBasicRequest struct {
ctx context.Context
ctx context.Context
ApiService *WeatherAPIService
venueId interface{}
fields *interface{}
venueId interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -45,24 +59,24 @@ WeatherBasic Get basic weather for a venue.
Returns a json file containing basic weather for a specific venue.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiWeatherBasicRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiWeatherBasicRequest
*/
func (a *WeatherAPIService) WeatherBasic(ctx context.Context, venueId interface{}) ApiWeatherBasicRequest {
return ApiWeatherBasicRequest{
ApiService: a,
ctx: ctx,
venueId: venueId,
ctx: ctx,
venueId: venueId,
}
}
// Execute executes the request
func (a *WeatherAPIService) WeatherBasicExecute(r ApiWeatherBasicRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherBasic")
@ -126,11 +140,11 @@ func (a *WeatherAPIService) WeatherBasicExecute(r ApiWeatherBasicRequest) (*http
}
type ApiWeatherDataBasedOnPlayRequest struct {
ctx context.Context
ctx context.Context
ApiService *WeatherAPIService
gamePk interface{}
playId interface{}
fields *interface{}
gamePk interface{}
playId interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -148,26 +162,26 @@ WeatherDataBasedOnPlay Get the raw field weather data.
Returns a json file containing weather for the current play.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique identifier for a play within a game
@return ApiWeatherDataBasedOnPlayRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param playId Unique identifier for a play within a game
@return ApiWeatherDataBasedOnPlayRequest
*/
func (a *WeatherAPIService) WeatherDataBasedOnPlay(ctx context.Context, gamePk interface{}, playId interface{}) ApiWeatherDataBasedOnPlayRequest {
return ApiWeatherDataBasedOnPlayRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
playId: playId,
ctx: ctx,
gamePk: gamePk,
playId: playId,
}
}
// Execute executes the request
func (a *WeatherAPIService) WeatherDataBasedOnPlayExecute(r ApiWeatherDataBasedOnPlayRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherDataBasedOnPlay")
@ -232,11 +246,11 @@ func (a *WeatherAPIService) WeatherDataBasedOnPlayExecute(r ApiWeatherDataBasedO
}
type ApiWeatherForecastRequest struct {
ctx context.Context
ctx context.Context
ApiService *WeatherAPIService
gamePk interface{}
roofType interface{}
fields *interface{}
gamePk interface{}
roofType interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -254,26 +268,26 @@ WeatherForecast Get the weather forecast for a game.
Returns a json file containing the weather forecast for a specific game.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param roofType Venue roof type
@return ApiWeatherForecastRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param gamePk Unique Primary Key Representing a Game
@param roofType Venue roof type
@return ApiWeatherForecastRequest
*/
func (a *WeatherAPIService) WeatherForecast(ctx context.Context, gamePk interface{}, roofType interface{}) ApiWeatherForecastRequest {
return ApiWeatherForecastRequest{
ApiService: a,
ctx: ctx,
gamePk: gamePk,
roofType: roofType,
ctx: ctx,
gamePk: gamePk,
roofType: roofType,
}
}
// Execute executes the request
func (a *WeatherAPIService) WeatherForecastExecute(r ApiWeatherForecastRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherForecast")
@ -338,10 +352,10 @@ func (a *WeatherAPIService) WeatherForecastExecute(r ApiWeatherForecastRequest)
}
type ApiWeatherFullRequest struct {
ctx context.Context
ctx context.Context
ApiService *WeatherAPIService
venueId interface{}
fields *interface{}
venueId interface{}
fields *interface{}
}
// Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute
@ -359,24 +373,24 @@ WeatherFull Get full weather for a venue.
Returns a json file containing full weather for a specific venue.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiWeatherFullRequest
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param venueId Unique Venue Identifier
@return ApiWeatherFullRequest
*/
func (a *WeatherAPIService) WeatherFull(ctx context.Context, venueId interface{}) ApiWeatherFullRequest {
return ApiWeatherFullRequest{
ApiService: a,
ctx: ctx,
venueId: venueId,
ctx: ctx,
venueId: venueId,
}
}
// Execute executes the request
func (a *WeatherAPIService) WeatherFullExecute(r ApiWeatherFullRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherFull")

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -31,14 +46,13 @@ import (
"strings"
"time"
"unicode/utf8"
)
var (
JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`)
queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" )
queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]")
)
// APIClient manages communication with the Stats API Documentation API v2.0.0
@ -218,7 +232,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error {
return nil
}
func parameterValueToString( obj interface{}, key string ) string {
func parameterValueToString(obj interface{}, key string) string {
if reflect.TypeOf(obj).Kind() != reflect.Ptr {
if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok {
return fmt.Sprintf("%v", actualObj.GetActualInstanceValue())
@ -226,11 +240,11 @@ func parameterValueToString( obj interface{}, key string ) string {
return fmt.Sprintf("%v", obj)
}
var param,ok = obj.(MappedNullable)
var param, ok = obj.(MappedNullable)
if !ok {
return ""
}
dataMap,err := param.ToMap()
dataMap, err := param.ToMap()
if err != nil {
return ""
}
@ -246,85 +260,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri
value = "null"
} else {
switch v.Kind() {
case reflect.Invalid:
value = "invalid"
case reflect.Invalid:
value = "invalid"
case reflect.Struct:
if t,ok := obj.(MappedNullable); ok {
dataMap,err := t.ToMap()
if err != nil {
return
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
case reflect.Struct:
if t, ok := obj.(MappedNullable); ok {
dataMap, err := t.ToMap()
if err != nil {
return
}
if t, ok := obj.(time.Time); ok {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
return
}
value = v.Type().String() + " value"
case reflect.Slice:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
var lenIndValue = indValue.Len()
for i:=0;i<lenIndValue;i++ {
var arrayValue = indValue.Index(i)
var keyPrefixForCollectionType = keyPrefix
if style == "deepObject" {
keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType)
return
case reflect.Map:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
iter := indValue.MapRange()
for iter.Next() {
k,v := iter.Key(), iter.Value()
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
}
}
if t, ok := obj.(time.Time); ok {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType)
return
case reflect.Interface:
fallthrough
case reflect.Ptr:
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
}
value = v.Type().String() + " value"
case reflect.Slice:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
var lenIndValue = indValue.Len()
for i := 0; i < lenIndValue; i++ {
var arrayValue = indValue.Index(i)
var keyPrefixForCollectionType = keyPrefix
if style == "deepObject" {
keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]"
}
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType)
}
return
case reflect.Int, reflect.Int8, reflect.Int16,
reflect.Int32, reflect.Int64:
value = strconv.FormatInt(v.Int(), 10)
case reflect.Uint, reflect.Uint8, reflect.Uint16,
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
value = strconv.FormatUint(v.Uint(), 10)
case reflect.Float32, reflect.Float64:
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
case reflect.Bool:
value = strconv.FormatBool(v.Bool())
case reflect.String:
value = v.String()
default:
value = v.Type().String() + " value"
case reflect.Map:
var indValue = reflect.ValueOf(obj)
if indValue == reflect.ValueOf(nil) {
return
}
iter := indValue.MapRange()
for iter.Next() {
k, v := iter.Key(), iter.Value()
parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType)
}
return
case reflect.Interface:
fallthrough
case reflect.Ptr:
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType)
return
case reflect.Int, reflect.Int8, reflect.Int16,
reflect.Int32, reflect.Int64:
value = strconv.FormatInt(v.Int(), 10)
case reflect.Uint, reflect.Uint8, reflect.Uint16,
reflect.Uint32, reflect.Uint64, reflect.Uintptr:
value = strconv.FormatUint(v.Uint(), 10)
case reflect.Float32, reflect.Float64:
value = strconv.FormatFloat(v.Float(), 'g', -1, 32)
case reflect.Bool:
value = strconv.FormatBool(v.Bool())
case reflect.String:
value = v.String()
default:
value = v.Type().String() + " value"
}
}
switch valuesMap := headerOrQueryParams.(type) {
case url.Values:
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix) + "," + value)
} else {
valuesMap.Add(keyPrefix, value)
}
break
case map[string]string:
valuesMap[keyPrefix] = value
break
case url.Values:
if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" {
valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value)
} else {
valuesMap.Add(keyPrefix, value)
}
break
case map[string]string:
valuesMap[keyPrefix] = value
break
}
}
@ -369,9 +383,9 @@ func (c *APIClient) GetConfig() *Configuration {
}
type formFile struct {
fileBytes []byte
fileName string
formFileName string
fileBytes []byte
fileName string
formFileName string
}
// prepareRequest build the request
@ -425,11 +439,11 @@ func (c *APIClient) prepareRequest(
w.Boundary()
part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName))
if err != nil {
return nil, err
return nil, err
}
_, err = part.Write(formFile.fileBytes)
if err != nil {
return nil, err
return nil, err
}
}
}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -62,9 +77,9 @@ type ServerVariable struct {
// ServerConfiguration stores the information about a server
type ServerConfiguration struct {
URL string
URL string
Description string
Variables map[string]ServerVariable
Variables map[string]ServerVariable
}
// ServerConfigurations stores multiple ServerConfiguration items
@ -85,17 +100,16 @@ type Configuration struct {
// NewConfiguration returns a new Configuration object
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: ServerConfigurations{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: ServerConfigurations{
{
URL: "",
URL: "",
Description: "No description provided",
},
},
OperationServers: map[string]ServerConfigurations{
},
OperationServers: map[string]ServerConfigurations{},
}
return cfg
}

View File

@ -1,57 +0,0 @@
#!/bin/sh
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
git_user_id=$1
git_repo_id=$2
release_note=$3
git_host=$4
if [ "$git_host" = "" ]; then
git_host=""
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
fi
if [ "$git_user_id" = "" ]; then
git_user_id=""
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
fi
if [ "$git_repo_id" = "" ]; then
git_repo_id=""
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
fi
if [ "$release_note" = "" ]; then
release_note=""
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
fi
# Initialize the local directory as a Git repository
git init
# Adds the files in the local repository and stages them for commit.
git add .
# Commits the tracked changes and prepares them to be pushed to a remote repository.
git commit -m "$release_note"
# Sets the new remote
git_remote=$(git remote)
if [ "$git_remote" = "" ]; then # git remote not defined
if [ "$GIT_TOKEN" = "" ]; then
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
else
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
fi
fi
git pull origin master
# Pushes (Forces) the changes in the local repository up to the remote repository
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
git push origin master 2>&1 | grep -v 'To https'

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing AnalyticsAPIService
@ -10,11 +25,11 @@ Testing AnalyticsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_AnalyticsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService ContextMetrics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var guid interface{}
@ -38,7 +53,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService ContextMetricsWithAverages", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var guid interface{}
@ -52,7 +67,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService ContextMetricsWithAveragesPost", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var guid interface{}
@ -66,7 +81,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService GameGuids", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -79,7 +94,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService GameGuidsFromPostgresRange", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.AnalyticsAPI.GameGuidsFromPostgresRange(context.Background()).Execute()
@ -90,7 +105,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService GameGuidsFromPostgresRangeByGame", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.AnalyticsAPI.GameGuidsFromPostgresRangeByGame(context.Background()).Execute()
@ -101,7 +116,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService GameLastPitch", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.AnalyticsAPI.GameLastPitch(context.Background()).Execute()
@ -112,7 +127,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService HomeRunBallparks", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var guid interface{}
@ -126,7 +141,7 @@ func Test_api_AnalyticsAPIService(t *testing.T) {
t.Run("Test AnalyticsAPIService ParsedJsonFormattedAnalytics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var guid interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing AttendanceAPIService
@ -10,11 +25,11 @@ Testing AttendanceAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_AttendanceAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_AttendanceAPIService(t *testing.T) {
t.Run("Test AttendanceAPIService GetTeamAttendance", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.AttendanceAPI.GetTeamAttendance(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing AwardsAPIService
@ -10,11 +25,11 @@ Testing AwardsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_AwardsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_AwardsAPIService(t *testing.T) {
t.Run("Test AwardsAPIService AwardRecipients", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var awardId interface{}
@ -37,7 +52,7 @@ func Test_api_AwardsAPIService(t *testing.T) {
t.Run("Test AwardsAPIService Awards", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var awardId interface{}
@ -50,7 +65,7 @@ func Test_api_AwardsAPIService(t *testing.T) {
t.Run("Test AwardsAPIService Awards1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var awardId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing BatTrackingAPIService
@ -10,11 +25,11 @@ Testing BatTrackingAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_BatTrackingAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_BatTrackingAPIService(t *testing.T) {
t.Run("Test BatTrackingAPIService BatTracking", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var playId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing BiomechanicsAPIService
@ -10,11 +25,11 @@ Testing BiomechanicsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_BiomechanicsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_BiomechanicsAPIService(t *testing.T) {
t.Run("Test BiomechanicsAPIService Biomechanical", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var playId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing BroadcastAPIService
@ -10,11 +25,11 @@ Testing BroadcastAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_BroadcastAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_BroadcastAPIService(t *testing.T) {
t.Run("Test BroadcastAPIService GetAllBroadcasters", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.BroadcastAPI.GetAllBroadcasters(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_BroadcastAPIService(t *testing.T) {
t.Run("Test BroadcastAPIService GetBroadcasts", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.BroadcastAPI.GetBroadcasts(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing ConferenceAPIService
@ -10,11 +25,11 @@ Testing ConferenceAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_ConferenceAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_ConferenceAPIService(t *testing.T) {
t.Run("Test ConferenceAPIService Conferences", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var conferenceId interface{}
@ -37,7 +52,7 @@ func Test_api_ConferenceAPIService(t *testing.T) {
t.Run("Test ConferenceAPIService Conferences1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var conferenceId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing DivisionAPIService
@ -10,11 +25,11 @@ Testing DivisionAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_DivisionAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_DivisionAPIService(t *testing.T) {
t.Run("Test DivisionAPIService Divisions", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var divisionId interface{}
@ -37,7 +52,7 @@ func Test_api_DivisionAPIService(t *testing.T) {
t.Run("Test DivisionAPIService Divisions1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var divisionId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing DraftAPIService
@ -10,11 +25,11 @@ Testing DraftAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_DraftAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_DraftAPIService(t *testing.T) {
t.Run("Test DraftAPIService DraftPicks", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var year interface{}
@ -37,7 +52,7 @@ func Test_api_DraftAPIService(t *testing.T) {
t.Run("Test DraftAPIService DraftPicks1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var year interface{}
@ -50,7 +65,7 @@ func Test_api_DraftAPIService(t *testing.T) {
t.Run("Test DraftAPIService DraftProspects", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var year interface{}
@ -63,7 +78,7 @@ func Test_api_DraftAPIService(t *testing.T) {
t.Run("Test DraftAPIService DraftProspects1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var year interface{}
@ -76,7 +91,7 @@ func Test_api_DraftAPIService(t *testing.T) {
t.Run("Test DraftAPIService LatestDraftPicks", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var year interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing GamePaceAPIService
@ -10,11 +25,11 @@ Testing GamePaceAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_GamePaceAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_GamePaceAPIService(t *testing.T) {
t.Run("Test GamePaceAPIService GamePace", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.GamePaceAPI.GamePace(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing GameAPIService
@ -10,11 +25,11 @@ Testing GameAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_GameAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService Boxscore", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -37,7 +52,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService ColorFeed", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -50,7 +65,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService ColorTimestamps", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -63,7 +78,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService Content", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -76,7 +91,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService CurrentGameStats1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.GameAPI.CurrentGameStats1(context.Background()).Execute()
@ -87,7 +102,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService GetGameContextMetrics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -100,7 +115,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService GetGameWithMetrics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -113,7 +128,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService GetWinProbability", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -126,7 +141,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService Linescore", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -139,7 +154,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService LiveGameDiffPatchV1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -152,7 +167,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService LiveGameV1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -165,7 +180,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService LiveTimestampv11", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -178,7 +193,7 @@ func Test_api_GameAPIService(t *testing.T) {
t.Run("Test GameAPIService PlayByPlay", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing HighLowAPIService
@ -10,11 +25,11 @@ Testing HighLowAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_HighLowAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_HighLowAPIService(t *testing.T) {
t.Run("Test HighLowAPIService HighLow", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var highLowType interface{}
@ -37,7 +52,7 @@ func Test_api_HighLowAPIService(t *testing.T) {
t.Run("Test HighLowAPIService HighLowStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.HighLowAPI.HighLowStats(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing HomerunDerbyAPIService
@ -10,11 +25,11 @@ Testing HomerunDerbyAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_HomerunDerbyAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -37,7 +52,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -50,7 +65,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket2", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -63,7 +78,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyBracket3", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -76,7 +91,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyMixedMode", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -89,7 +104,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyMixedMode1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -102,7 +117,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyPool", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
@ -115,7 +130,7 @@ func Test_api_HomerunDerbyAPIService(t *testing.T) {
t.Run("Test HomerunDerbyAPIService HomeRunDerbyPool1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing JobAPIService
@ -10,11 +25,11 @@ Testing JobAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_JobAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_JobAPIService(t *testing.T) {
t.Run("Test JobAPIService Datacasters", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.JobAPI.Datacasters(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_JobAPIService(t *testing.T) {
t.Run("Test JobAPIService GetJobsByType", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.JobAPI.GetJobsByType(context.Background()).Execute()
@ -46,7 +61,7 @@ func Test_api_JobAPIService(t *testing.T) {
t.Run("Test JobAPIService OfficialScorers", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.JobAPI.OfficialScorers(context.Background()).Execute()
@ -57,7 +72,7 @@ func Test_api_JobAPIService(t *testing.T) {
t.Run("Test JobAPIService UmpireSchedule", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var umpireId interface{}
@ -70,7 +85,7 @@ func Test_api_JobAPIService(t *testing.T) {
t.Run("Test JobAPIService Umpires", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.JobAPI.Umpires(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing LeagueAPIService
@ -10,11 +25,11 @@ Testing LeagueAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_LeagueAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarBallot", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -37,7 +52,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarBallot1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -50,7 +65,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarBallot2", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -63,7 +78,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarBallot3", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -76,7 +91,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarFinalVote", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -89,7 +104,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarFinalVote1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -102,7 +117,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarWriteIns", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -115,7 +130,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService AllStarWriteIns1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -128,7 +143,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService League", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -141,7 +156,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService League1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -154,7 +169,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService League2", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}
@ -167,7 +182,7 @@ func Test_api_LeagueAPIService(t *testing.T) {
t.Run("Test LeagueAPIService League3", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var leagueId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing MilestonesAPIService
@ -10,11 +25,11 @@ Testing MilestonesAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_MilestonesAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_MilestonesAPIService(t *testing.T) {
t.Run("Test MilestonesAPIService AchievementStatuses", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MilestonesAPI.AchievementStatuses(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_MilestonesAPIService(t *testing.T) {
t.Run("Test MilestonesAPIService MilestoneDurations", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MilestonesAPI.MilestoneDurations(context.Background()).Execute()
@ -46,7 +61,7 @@ func Test_api_MilestonesAPIService(t *testing.T) {
t.Run("Test MilestonesAPIService MilestoneLookups", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MilestonesAPI.MilestoneLookups(context.Background()).Execute()
@ -57,7 +72,7 @@ func Test_api_MilestonesAPIService(t *testing.T) {
t.Run("Test MilestonesAPIService MilestoneStatistics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MilestonesAPI.MilestoneStatistics(context.Background()).Execute()
@ -68,7 +83,7 @@ func Test_api_MilestonesAPIService(t *testing.T) {
t.Run("Test MilestonesAPIService MilestoneTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MilestonesAPI.MilestoneTypes(context.Background()).Execute()
@ -79,7 +94,7 @@ func Test_api_MilestonesAPIService(t *testing.T) {
t.Run("Test MilestonesAPIService Milestones", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MilestonesAPI.Milestones(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing MiscAPIService
@ -10,11 +25,11 @@ Testing MiscAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_MiscAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService AggregateSortEnum", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.AggregateSortEnum(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService BaseballStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.BaseballStats(context.Background()).Execute()
@ -46,7 +61,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService BroadcastAvailabilityTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.BroadcastAvailabilityTypes(context.Background()).Execute()
@ -57,7 +72,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService CoachingVideoTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.CoachingVideoTypes(context.Background()).Execute()
@ -68,7 +83,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService EventStatus", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.EventStatus(context.Background()).Execute()
@ -79,7 +94,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService EventTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.EventTypes(context.Background()).Execute()
@ -90,7 +105,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService FielderDetailTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.FielderDetailTypes(context.Background()).Execute()
@ -101,7 +116,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService FreeGameTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.FreeGameTypes(context.Background()).Execute()
@ -112,7 +127,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService GameStatus", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.GameStatus(context.Background()).Execute()
@ -123,7 +138,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService GameTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.GameTypes(context.Background()).Execute()
@ -134,7 +149,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService GamedayTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.GamedayTypes(context.Background()).Execute()
@ -145,7 +160,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService GetLookupValues", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.GetLookupValues(context.Background()).Execute()
@ -156,7 +171,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService GroupByTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.GroupByTypes(context.Background()).Execute()
@ -167,7 +182,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService HitTrajectories", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.HitTrajectories(context.Background()).Execute()
@ -178,7 +193,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService JobTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.JobTypes(context.Background()).Execute()
@ -189,7 +204,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService Languages", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.Languages(context.Background()).Execute()
@ -200,7 +215,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService LeagueLeaderTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.LeagueLeaderTypes(context.Background()).Execute()
@ -211,7 +226,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService LogicalEvents", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.LogicalEvents(context.Background()).Execute()
@ -222,7 +237,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService MediaStateTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.MediaStateTypes(context.Background()).Execute()
@ -233,7 +248,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService Metrics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.Metrics(context.Background()).Execute()
@ -244,7 +259,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService MoundVisitTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.MoundVisitTypes(context.Background()).Execute()
@ -255,7 +270,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService PerformerTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.PerformerTypes(context.Background()).Execute()
@ -266,7 +281,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService PitchCodes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.PitchCodes(context.Background()).Execute()
@ -277,7 +292,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService PitchTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.PitchTypes(context.Background()).Execute()
@ -288,7 +303,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService Platforms", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.Platforms(context.Background()).Execute()
@ -299,7 +314,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService PlayerStatusCodes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.PlayerStatusCodes(context.Background()).Execute()
@ -310,7 +325,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService Positions", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.Positions(context.Background()).Execute()
@ -321,7 +336,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService ReviewReasons", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.ReviewReasons(context.Background()).Execute()
@ -332,7 +347,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService RoofTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.RoofTypes(context.Background()).Execute()
@ -343,7 +358,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService RosterTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.RosterTypes(context.Background()).Execute()
@ -354,7 +369,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService RuleSettings", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.RuleSettings(context.Background()).Execute()
@ -365,7 +380,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService RunnerDetailTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.RunnerDetailTypes(context.Background()).Execute()
@ -376,7 +391,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService ScheduleEventTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.ScheduleEventTypes(context.Background()).Execute()
@ -387,7 +402,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService ScheduleTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.ScheduleTypes(context.Background()).Execute()
@ -398,7 +413,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService SitCodes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.SitCodes(context.Background()).Execute()
@ -409,7 +424,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService Sky", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.Sky(context.Background()).Execute()
@ -420,7 +435,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StandingsTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StandingsTypes(context.Background()).Execute()
@ -431,7 +446,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatFields", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatFields(context.Background()).Execute()
@ -442,7 +457,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatGroups", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatGroups(context.Background()).Execute()
@ -453,7 +468,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatSearchConfig", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatSearchConfig(context.Background()).Execute()
@ -464,7 +479,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatSearchGroupByTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatSearchGroupByTypes(context.Background()).Execute()
@ -475,7 +490,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatSearchParams", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatSearchParams(context.Background()).Execute()
@ -486,7 +501,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatSearchStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatSearchStats(context.Background()).Execute()
@ -497,7 +512,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatTypes(context.Background()).Execute()
@ -508,7 +523,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService StatcastPositionTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.StatcastPositionTypes(context.Background()).Execute()
@ -519,7 +534,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService TrackingSoftwareVersions", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.TrackingSoftwareVersions(context.Background()).Execute()
@ -530,7 +545,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService TrackingSystemOwners", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.TrackingSystemOwners(context.Background()).Execute()
@ -541,7 +556,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService TrackingVendors", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.TrackingVendors(context.Background()).Execute()
@ -552,7 +567,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService TrackingVersions", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.TrackingVersions(context.Background()).Execute()
@ -563,7 +578,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService TransactionTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.TransactionTypes(context.Background()).Execute()
@ -574,7 +589,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService UpdateGameStatuses", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.UpdateGameStatuses(context.Background()).Execute()
@ -585,7 +600,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService UpdateJobTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.UpdateJobTypes(context.Background()).Execute()
@ -596,7 +611,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService VideoResolutionTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.VideoResolutionTypes(context.Background()).Execute()
@ -607,7 +622,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService ViolationTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.ViolationTypes(context.Background()).Execute()
@ -618,7 +633,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService WeatherTrajectoryConfidences", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.WeatherTrajectoryConfidences(context.Background()).Execute()
@ -629,7 +644,7 @@ func Test_api_MiscAPIService(t *testing.T) {
t.Run("Test MiscAPIService WindDirection", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.MiscAPI.WindDirection(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing PersonAPIService
@ -10,11 +25,11 @@ Testing PersonAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_PersonAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService Award", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var personId interface{}
@ -37,7 +52,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService CurrentGameStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PersonAPI.CurrentGameStats(context.Background()).Execute()
@ -48,7 +63,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService FreeAgents", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PersonAPI.FreeAgents(context.Background()).Execute()
@ -59,7 +74,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService Person", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var personId interface{}
@ -72,7 +87,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService Person1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var personId interface{}
@ -85,7 +100,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService PlayerGameStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var personId interface{}
var gamePk interface{}
@ -99,7 +114,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService Search", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PersonAPI.Search(context.Background()).Execute()
@ -110,7 +125,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService Stats3", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var personId interface{}
@ -123,7 +138,7 @@ func Test_api_PersonAPIService(t *testing.T) {
t.Run("Test PersonAPIService StatsMetrics", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var personId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing PredictionsAPIService
@ -10,11 +25,11 @@ Testing PredictionsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_PredictionsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_PredictionsAPIService(t *testing.T) {
t.Run("Test PredictionsAPIService GetProps", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PredictionsAPI.GetProps(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_PredictionsAPIService(t *testing.T) {
t.Run("Test PredictionsAPIService GetPropsAdjust", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.PredictionsAPI.GetPropsAdjust(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing ReviewsAPIService
@ -10,11 +25,11 @@ Testing ReviewsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_ReviewsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_ReviewsAPIService(t *testing.T) {
t.Run("Test ReviewsAPIService GetReviewInfo", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ReviewsAPI.GetReviewInfo(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing ScheduleAPIService
@ -10,11 +25,11 @@ Testing ScheduleAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_ScheduleAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService PostseasonSchedule", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.PostseasonSchedule(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService PostseasonScheduleSeries", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.PostseasonScheduleSeries(context.Background()).Execute()
@ -46,7 +61,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService Schedule", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.Schedule(context.Background()).Execute()
@ -57,7 +72,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService Schedule1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.Schedule1(context.Background()).Execute()
@ -68,7 +83,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService TieGames", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.TieGames(context.Background()).Execute()
@ -79,7 +94,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService TrackingEventsSchedule", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.TrackingEventsSchedule(context.Background()).Execute()
@ -90,7 +105,7 @@ func Test_api_ScheduleAPIService(t *testing.T) {
t.Run("Test ScheduleAPIService TuneIn", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.ScheduleAPI.TuneIn(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing SeasonAPIService
@ -10,11 +25,11 @@ Testing SeasonAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_SeasonAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_SeasonAPIService(t *testing.T) {
t.Run("Test SeasonAPIService AllSeasons", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.SeasonAPI.AllSeasons(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_SeasonAPIService(t *testing.T) {
t.Run("Test SeasonAPIService Seasons", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var seasonId interface{}
@ -48,7 +63,7 @@ func Test_api_SeasonAPIService(t *testing.T) {
t.Run("Test SeasonAPIService Seasons1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var seasonId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing SkeletalAPIService
@ -10,11 +25,11 @@ Testing SkeletalAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_SkeletalAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_SkeletalAPIService(t *testing.T) {
t.Run("Test SkeletalAPIService SkeletalChunked", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var playId interface{}
@ -38,7 +53,7 @@ func Test_api_SkeletalAPIService(t *testing.T) {
t.Run("Test SkeletalAPIService SkeletalDataFileNames", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var playId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing SportsAPIService
@ -10,11 +25,11 @@ Testing SportsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_SportsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_SportsAPIService(t *testing.T) {
t.Run("Test SportsAPIService AllSportBallot", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var sportId interface{}
@ -37,7 +52,7 @@ func Test_api_SportsAPIService(t *testing.T) {
t.Run("Test SportsAPIService SportPlayers", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var sportId interface{}
@ -50,7 +65,7 @@ func Test_api_SportsAPIService(t *testing.T) {
t.Run("Test SportsAPIService Sports", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var sportId interface{}
@ -63,7 +78,7 @@ func Test_api_SportsAPIService(t *testing.T) {
t.Run("Test SportsAPIService Sports1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var sportId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing StandingsAPIService
@ -10,11 +25,11 @@ Testing StandingsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_StandingsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_StandingsAPIService(t *testing.T) {
t.Run("Test StandingsAPIService Standings", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var standingsType interface{}
@ -37,7 +52,7 @@ func Test_api_StandingsAPIService(t *testing.T) {
t.Run("Test StandingsAPIService Standings1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var standingsType interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing StatsAPIService
@ -10,11 +25,11 @@ Testing StatsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_StatsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService BeastStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.BeastStats(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService GetOutsAboveAverage", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.GetOutsAboveAverage(context.Background()).Execute()
@ -46,7 +61,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService GetSprayChart", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.GetSprayChart(context.Background()).Execute()
@ -57,7 +72,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService GetStolenBaseProbability", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.GetStolenBaseProbability(context.Background()).Execute()
@ -68,7 +83,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService GroupedStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.GroupedStats(context.Background()).Execute()
@ -79,7 +94,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService Leaders2", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.Leaders2(context.Background()).Execute()
@ -90,7 +105,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService MetricStats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.MetricStats(context.Background()).Execute()
@ -101,7 +116,7 @@ func Test_api_StatsAPIService(t *testing.T) {
t.Run("Test StatsAPIService Stats2", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StatsAPI.Stats2(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing StreaksAPIService
@ -10,11 +25,11 @@ Testing StreaksAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_StreaksAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_StreaksAPIService(t *testing.T) {
t.Run("Test StreaksAPIService GetStreaks", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StreaksAPI.GetStreaks(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_StreaksAPIService(t *testing.T) {
t.Run("Test StreaksAPIService StreakTypes", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.StreaksAPI.StreakTypes(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing TeamsAPIService
@ -10,11 +25,11 @@ Testing TeamsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_TeamsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Affiliates", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -37,7 +52,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Affiliates1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -50,7 +65,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService AllTeams", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -63,7 +78,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService AllTeams1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -76,7 +91,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Alumni", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -89,7 +104,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Coaches", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -102,7 +117,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Leaders", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -115,7 +130,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Leaders1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.TeamsAPI.Leaders1(context.Background()).Execute()
@ -126,7 +141,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Personnel", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -139,7 +154,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Roster", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
var rosterType interface{}
@ -153,7 +168,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Roster1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
var rosterType interface{}
@ -167,7 +182,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Stats", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -180,7 +195,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Stats1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.TeamsAPI.Stats1(context.Background()).Execute()
@ -191,7 +206,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Teams", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -204,7 +219,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService Teams1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}
@ -217,7 +232,7 @@ func Test_api_TeamsAPIService(t *testing.T) {
t.Run("Test TeamsAPIService UpdateAlumni", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var teamId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing TransactionsAPIService
@ -10,11 +25,11 @@ Testing TransactionsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_TransactionsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_TransactionsAPIService(t *testing.T) {
t.Run("Test TransactionsAPIService Transactions", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.TransactionsAPI.Transactions(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing UniformsAPIService
@ -10,11 +25,11 @@ Testing UniformsAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_UniformsAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_UniformsAPIService(t *testing.T) {
t.Run("Test UniformsAPIService UniformsByGame", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.UniformsAPI.UniformsByGame(context.Background()).Execute()
@ -35,7 +50,7 @@ func Test_api_UniformsAPIService(t *testing.T) {
t.Run("Test UniformsAPIService UniformsByTeam", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
httpRes, err := apiClient.UniformsAPI.UniformsByTeam(context.Background()).Execute()

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing VenuesAPIService
@ -10,11 +25,11 @@ Testing VenuesAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_VenuesAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_VenuesAPIService(t *testing.T) {
t.Run("Test VenuesAPIService Venues", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var venueId interface{}
@ -37,7 +52,7 @@ func Test_api_VenuesAPIService(t *testing.T) {
t.Run("Test VenuesAPIService Venues1", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var venueId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Testing WeatherAPIService
@ -10,11 +25,11 @@ Testing WeatherAPIService
package api
import (
openapiclient "//"
"context"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
openapiclient "//"
)
func Test_api_WeatherAPIService(t *testing.T) {
@ -24,7 +39,7 @@ func Test_api_WeatherAPIService(t *testing.T) {
t.Run("Test WeatherAPIService WeatherBasic", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var venueId interface{}
@ -37,7 +52,7 @@ func Test_api_WeatherAPIService(t *testing.T) {
t.Run("Test WeatherAPIService WeatherDataBasedOnPlay", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var playId interface{}
@ -51,7 +66,7 @@ func Test_api_WeatherAPIService(t *testing.T) {
t.Run("Test WeatherAPIService WeatherForecast", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var gamePk interface{}
var roofType interface{}
@ -65,7 +80,7 @@ func Test_api_WeatherAPIService(t *testing.T) {
t.Run("Test WeatherAPIService WeatherFull", func(t *testing.T) {
t.Skip("skip test") // remove to run test
t.Skip("skip test") // remove to run test
var venueId interface{}

View File

@ -1,4 +1,19 @@
/*
Copyright © 2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Stats API Documentation
Official API for Major League Baseball.
@ -358,4 +373,4 @@ func newStrictDecoder(data []byte) *json.Decoder {
// Prevent trying to import "fmt"
func reportError(format string, a ...interface{}) error {
return fmt.Errorf(format, a...)
}
}

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -24,19 +24,18 @@ import (
)
var statsAPIConfiguration = &api.Configuration{
Host: "statsapi.mlb.com",
Scheme: "https",
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: api.ServerConfigurations{
Host: "statsapi.mlb.com",
Scheme: "https",
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/1.0.0/go",
Debug: false,
Servers: api.ServerConfigurations{
{
URL: "",
URL: "",
Description: "No description provided",
},
},
OperationServers: map[string]api.ServerConfigurations{
},
OperationServers: map[string]api.ServerConfigurations{},
}
var statsAPIClient = api.NewAPIClient(statsAPIConfiguration)

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -61,6 +61,6 @@ func init() {
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
contentCmd.Flags().Int32VarP(&gamePk, "gamePk", "g", 0, "game PK")
contentCmd.Flags().IntVarP(&gamePk, "gamePk", "g", 0, "game PK")
contentCmd.MarkFlagRequired("gamePk")
}

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -61,6 +61,6 @@ func init() {
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
feedCmd.Flags().Int32VarP(&gamePk, "gamePk", "g", 0, "game PK")
feedCmd.Flags().IntVarP(&gamePk, "gamePk", "g", 0, "game PK")
feedCmd.MarkFlagRequired("gamePk")
}

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -20,7 +20,7 @@ import (
)
// retrieved from https://statsapi.mlb.com/api/v1/leagues
var leagueIDs = map[string]int32{
var leagueIDs = map[string]int{
"al": 103,
"nl": 104,
"nn2": 431,

View File

@ -23,7 +23,7 @@ import (
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "mlblive",
Use: "mlbstats",
Short: "Command line tools for Major League Baseball's Stats API",
Long: `Command line tools for Major League Baseball's Stats API.`,
}

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -20,7 +20,7 @@ import (
)
// retrieved from https://statsapi.mlb.com/api/v1/sports
var sportIDs = map[string]int32{
var sportIDs = map[string]int{
"mlb": 1,
"aaa": 11,
"aa": 12,

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -28,7 +28,7 @@ import (
var league leagueAbbr
func standings(cmd *cobra.Command, args []string) {
var leagueIds []int32
var leagueIds []int
leagueIds = append(leagueIds, leagueIDs[string(league)])
req := statsAPIClient.StandingsAPI.Standings1(context.Background(), "regularSeason")

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -30,7 +30,21 @@ import (
"scm.dairydemon.net/filifa/mlbstats/api"
)
var gamePk int32
var gamePk int
func extractTimestamp(body []byte) (any, error) {
var v any
err := json.Unmarshal(body, &v)
if err != nil {
return nil, err
}
vobj := v.(map[string]any)
metaData := vobj["metaData"].(map[string]any)
timestamp := metaData["timeStamp"]
return timestamp, nil
}
func extractPatches(resp []byte) ([]jsonpatch.Patch, error) {
var patches []jsonpatch.Patch
@ -46,49 +60,48 @@ func extractPatches(resp []byte) ([]jsonpatch.Patch, error) {
patches = append(patches, patch)
}
return patches, err
return patches, nil
}
func patch(body []byte, client *api.APIClient) error {
var v any
err := json.Unmarshal(body, &v)
if err != nil {
return err
}
vobj := v.(map[string]any)
metaData := vobj["metaData"].(map[string]any)
timestamp := metaData["timeStamp"]
func requestPatches(timestamp any, client *api.APIClient) ([]jsonpatch.Patch, error) {
req := client.GameAPI.LiveGameDiffPatchV1(context.Background(), gamePk)
req.StartTimecode(timestamp)
req = req.StartTimecode(timestamp)
resp, err := req.Execute()
if err != nil {
return err
return nil, err
}
diffPatch, err := io.ReadAll(resp.Body)
if err != nil {
return err
return nil, err
}
patches, err := extractPatches(diffPatch)
return extractPatches(diffPatch)
}
func patch(body []byte, client *api.APIClient) ([]byte, error) {
timestamp, err := extractTimestamp(body)
if err != nil {
return err
return body, err
}
patches, err := requestPatches(timestamp, client)
if err != nil {
return body, err
}
for _, patch := range patches {
body, err = patch.Apply(body)
if err != nil {
return err
return body, err
}
}
return err
return body, nil
}
func newWebsocket(gamePk int32) (*gamedayWebsocket, <-chan error, error) {
func newWebsocket(gamePk int) (*gamedayWebsocket, <-chan error, error) {
ws, err := newGamedayWebsocket(gamePk)
if err != nil {
return nil, nil, err
@ -97,57 +110,59 @@ func newWebsocket(gamePk int32) (*gamedayWebsocket, <-chan error, error) {
ch := make(chan error)
go ws.keepAlive(10*time.Second, ch)
return ws, ch, err
return ws, ch, nil
}
func handleUnexpectedClose(body []byte, client *api.APIClient) (*gamedayWebsocket, error) {
func handleUnexpectedClose(client *api.APIClient) ([]byte, *gamedayWebsocket, error) {
ws, _, err := newWebsocket(gamePk)
if err != nil {
return nil, err
return nil, nil, err
}
req := client.GameAPI.LiveGameV1(context.Background(), gamePk)
resp, err := req.Execute()
if err != nil {
return ws, err
return nil, ws, err
}
body, err = io.ReadAll(resp.Body)
return ws, err
body, err := io.ReadAll(resp.Body)
return body, ws, err
}
func updateFeed(body []byte, ws *gamedayWebsocket, client *api.APIClient) error {
func handlePush(ws *gamedayWebsocket, client *api.APIClient) ([]byte, error) {
var p push
err := ws.ReadJSON(&p)
if websocket.IsUnexpectedCloseError(err, GameFinalCode, GameUnavailableCode) {
log.Println(err)
newWs, err := handleUnexpectedClose(body, client)
body, newWs, err := handleUnexpectedClose(client)
if err != nil {
return err
return body, err
}
*ws = *newWs
return err
} else if err != nil {
return err
return body, nil
}
err = patch(body, client)
return nil, err
}
func updateFeed(body []byte, client *api.APIClient) ([]byte, error) {
body, err := patch(body, client)
if err != nil {
req := client.GameAPI.LiveGameV1(context.Background(), gamePk)
resp, err := req.Execute()
if err != nil {
return err
return body, err
}
body, err = io.ReadAll(resp.Body)
if err != nil {
return err
return body, err
}
}
return err
return body, nil
}
func subscribe(cmd *cobra.Command, args []string) {
@ -164,15 +179,23 @@ func subscribe(cmd *cobra.Command, args []string) {
log.Fatal(err)
}
for {
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}
body, err := io.ReadAll(resp.Body)
if err != nil {
log.Fatal(err)
}
for {
fmt.Println(string(body))
err = updateFeed(body, ws, statsAPIClient)
newBody, err := handlePush(ws, statsAPIClient)
if err != nil {
log.Fatal(err)
} else if newBody != nil {
body = newBody
continue
}
body, err = updateFeed(body, statsAPIClient)
if err != nil {
log.Fatal(err)
}
@ -202,6 +225,6 @@ func init() {
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
subscribeCmd.Flags().Int32VarP(&gamePk, "gamePk", "g", 0, "game PK")
subscribeCmd.Flags().IntVarP(&gamePk, "gamePk", "g", 0, "game PK")
subscribeCmd.MarkFlagRequired("gamePk")
}

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -20,7 +20,7 @@ import (
)
// retrieved from https://statsapi.mlb.com/api/v1/teams
var teamIDs = map[string]int32{
var teamIDs = map[string]int{
"laa": 108,
"az": 109,
"bal": 110,

View File

@ -1,5 +1,5 @@
/*
Copyright © 2024 filifa
Copyright © 2024,2025 filifa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
@ -43,7 +43,7 @@ type gamedayWebsocket struct {
// NewGamedayWebsocket creates a statsapi.GamedayWebsocket using the Stats API
// websocket URL and establishes a connection.
func newGamedayWebsocket(gamePk int32) (*gamedayWebsocket, error) {
func newGamedayWebsocket(gamePk int) (*gamedayWebsocket, error) {
ws := gamedayWebsocket{
baseURL: url.URL{
Scheme: "wss",
@ -55,9 +55,9 @@ func newGamedayWebsocket(gamePk int32) (*gamedayWebsocket, error) {
return &ws, err
}
func (g *gamedayWebsocket) init(gamePk int32) error {
func (g *gamedayWebsocket) init(gamePk int) error {
endpoint := url.URL{
Path: "api/v1/game/push/subscribe/gameday/" + strconv.Itoa(int(gamePk)),
Path: "api/v1/game/push/subscribe/gameday/" + strconv.Itoa(gamePk),
}
url := g.baseURL.ResolveReference(&endpoint)