This commit is contained in:
filifa 2025-04-06 22:14:30 -04:00
parent 5bfec4d5d9
commit 003f7b1309
68 changed files with 2991 additions and 3026 deletions

View File

@ -19,16 +19,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 +45,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 +129,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 +151,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 +235,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 +257,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 +341,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
@ -445,24 +444,24 @@ func (r ApiGameGuidsRequest) Execute() (*http.Response, error) {
/*
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 +561,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
@ -720,22 +719,22 @@ func (r ApiGameGuidsFromPostgresRangeRequest) Execute() (*http.Response, error)
/*
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 +857,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 +1022,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 +1163,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 +1188,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 +1270,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 +1298,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 +1386,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 +1408,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

@ -18,22 +18,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 +96,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

@ -19,18 +19,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 +62,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 +152,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 +178,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 +262,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 +288,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

@ -19,16 +19,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 +45,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

@ -19,17 +19,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 +46,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 +65,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

@ -18,15 +18,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 +47,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 +128,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 +153,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

@ -19,17 +19,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 +55,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 +70,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 +142,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 +174,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 +189,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

@ -19,19 +19,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 +72,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 +87,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 +165,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 +214,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 +229,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

@ -19,29 +19,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 +147,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 +273,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 +397,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 +523,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 +647,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 +773,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 +897,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 +1023,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 +1042,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

@ -19,20 +19,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 +79,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 +175,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 +203,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 +287,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 +301,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 +379,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 +398,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 +479,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 +560,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 +665,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 +691,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 +775,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 +815,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 +905,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 +945,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 +1035,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 +1070,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 +1157,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 +1192,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 +1279,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 +1321,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 +1411,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 +1425,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 +1503,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 +1545,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

@ -18,30 +18,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 +152,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

@ -19,24 +19,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 +105,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 +120,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 +213,7 @@ func (a *HighLowAPIService) HighLowExecute(r ApiHighLowRequest) (*http.Response,
}
type ApiHighLowStatsRequest struct {
ctx context.Context
ctx context.Context
ApiService *HighLowAPIService
}
@ -225,22 +224,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

@ -19,15 +19,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 +44,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 +125,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 +146,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 +227,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 +248,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 +329,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 +350,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 +431,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 +452,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 +533,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 +554,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 +635,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 +656,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 +737,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 +758,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

@ -19,16 +19,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 +57,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 +141,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 +182,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 +270,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 +304,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 +388,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 +416,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 +501,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 +542,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

@ -19,17 +19,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 +56,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 +143,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 +176,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 +263,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 +296,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 +383,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 +416,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 +503,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 +529,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 +613,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 +639,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 +723,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 +749,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 +833,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 +859,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 +943,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 +997,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 +1093,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 +1147,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 +1243,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 +1297,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 +1393,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 +1447,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

@ -18,12 +18,11 @@ import (
"net/url"
)
// MilestonesAPIService MilestonesAPI service
type MilestonesAPIService service
type ApiAchievementStatusesRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -34,22 +33,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 +108,7 @@ func (a *MilestonesAPIService) AchievementStatusesExecute(r ApiAchievementStatus
}
type ApiMilestoneDurationsRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -120,22 +119,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 +194,7 @@ func (a *MilestonesAPIService) MilestoneDurationsExecute(r ApiMilestoneDurations
}
type ApiMilestoneLookupsRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -206,22 +205,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 +280,7 @@ func (a *MilestonesAPIService) MilestoneLookupsExecute(r ApiMilestoneLookupsRequ
}
type ApiMilestoneStatisticsRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -292,22 +291,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 +366,7 @@ func (a *MilestonesAPIService) MilestoneStatisticsExecute(r ApiMilestoneStatisti
}
type ApiMilestoneTypesRequest struct {
ctx context.Context
ctx context.Context
ApiService *MilestonesAPIService
}
@ -378,22 +377,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 +452,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 +582,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

@ -19,15 +19,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 +42,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 +123,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 +169,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 +260,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 +298,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 +386,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 +435,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 +528,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 +577,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 +670,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 +697,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 +784,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 +886,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 +1000,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 +1187,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 +1341,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 +1528,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

@ -18,19 +18,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 +84,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 +180,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 +200,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

@ -18,17 +18,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 +61,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

@ -18,22 +18,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 +94,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 +196,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 +282,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 +390,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 +569,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 +717,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 +896,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 +1044,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 +1085,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 +1173,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 +1339,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 +1480,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 +1521,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

@ -19,18 +19,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 +71,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 +161,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 +203,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 +293,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 +335,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

@ -19,17 +19,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 +52,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 +140,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 +162,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

@ -19,16 +19,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 +50,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 +135,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 +184,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 +277,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 +319,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 +409,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 +451,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

@ -19,21 +19,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 +86,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 +101,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 +185,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 +248,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 +263,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

@ -18,111 +18,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 +718,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 +1088,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 +1118,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 +1203,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 +1233,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 +1318,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 +1341,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 +1423,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 +1686,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 +1871,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 +2044,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 +2200,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 +2462,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 +2647,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 +2895,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

@ -18,30 +18,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 +145,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 +271,7 @@ func (a *StreaksAPIService) GetStreaksExecute(r ApiGetStreaksRequest) (*http.Res
}
type ApiStreakTypesRequest struct {
ctx context.Context
ctx context.Context
ApiService *StreaksAPIService
}
@ -283,22 +282,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

@ -19,19 +19,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 +70,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 +163,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 +210,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 +303,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 +342,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 +432,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 +471,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 +561,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 +593,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 +681,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 +713,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 +800,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 +860,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 +962,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 +1104,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 +1236,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 +1268,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 +1355,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 +1398,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 +1415,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 +1491,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 +1534,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 +1551,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 +1627,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 +1737,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 +1858,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 +1994,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 +2124,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 +2207,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 +2315,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 +2398,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 +2506,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 +2538,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

@ -18,26 +18,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 +121,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

@ -18,15 +18,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 +49,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 +131,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 +164,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

@ -19,26 +19,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 +120,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 +234,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 +331,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

@ -19,15 +19,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 +44,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 +125,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 +147,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 +231,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 +253,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 +337,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 +358,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

@ -31,14 +31,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 +217,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 +225,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 +245,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 +368,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 +424,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

@ -62,9 +62,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 +85,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

@ -10,11 +10,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 +24,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 +38,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 +52,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 +66,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 +79,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 +90,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 +101,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 +112,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 +126,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

@ -10,11 +10,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 +24,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

@ -10,11 +10,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 +24,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 +37,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 +50,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

@ -10,11 +10,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 +24,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

@ -10,11 +10,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 +24,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

@ -10,11 +10,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 +24,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 +35,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

@ -10,11 +10,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 +24,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 +37,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

@ -10,11 +10,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 +24,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 +37,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

@ -10,11 +10,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 +24,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 +37,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 +50,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 +63,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 +76,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

@ -10,11 +10,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 +24,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

@ -10,11 +10,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 +24,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 +37,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 +50,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 +63,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 +76,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 +87,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 +100,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 +113,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 +126,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 +139,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 +152,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 +165,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 +178,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

@ -10,11 +10,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 +24,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 +37,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

@ -10,11 +10,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 +24,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 +37,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 +50,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 +63,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 +76,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 +89,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 +102,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 +115,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

@ -10,11 +10,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 +24,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 +35,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 +46,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 +57,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 +70,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

@ -10,11 +10,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 +24,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 +37,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 +50,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 +63,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 +76,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 +89,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 +102,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 +115,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 +128,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 +141,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 +154,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 +167,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

@ -10,11 +10,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 +24,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 +35,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 +46,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 +57,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 +68,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 +79,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

@ -10,11 +10,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 +24,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 +35,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 +46,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 +57,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 +68,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 +79,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 +90,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 +101,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 +112,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 +123,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 +134,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 +145,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 +156,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 +167,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 +178,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 +189,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 +200,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 +211,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 +222,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 +233,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 +244,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 +255,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 +266,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 +277,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 +288,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 +299,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 +310,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 +321,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 +332,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 +343,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 +354,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 +365,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 +376,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 +387,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 +398,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 +409,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 +420,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 +431,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 +442,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 +453,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 +464,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 +475,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 +486,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 +497,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 +508,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 +519,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 +530,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 +541,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 +552,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 +563,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 +574,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 +585,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 +596,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 +607,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 +618,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 +629,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

@ -10,11 +10,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 +24,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 +37,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 +48,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 +59,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 +72,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 +85,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 +99,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 +110,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 +123,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

@ -10,11 +10,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 +24,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 +35,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

@ -10,11 +10,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 +24,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

@ -10,11 +10,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 +24,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 +35,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 +46,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 +57,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 +68,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 +79,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 +90,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

@ -10,11 +10,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 +24,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 +35,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 +48,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

@ -10,11 +10,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 +24,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 +38,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

@ -10,11 +10,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 +24,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 +37,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 +50,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 +63,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

@ -10,11 +10,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 +24,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 +37,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

@ -10,11 +10,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 +24,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 +35,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 +46,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 +57,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 +68,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 +79,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 +90,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 +101,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

@ -10,11 +10,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 +24,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 +35,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

@ -10,11 +10,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 +24,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 +37,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 +50,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 +63,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 +76,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 +89,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 +102,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 +115,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 +126,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 +139,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 +153,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 +167,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 +180,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 +191,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 +204,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 +217,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

@ -10,11 +10,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 +24,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

@ -10,11 +10,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 +24,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 +35,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

@ -10,11 +10,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 +24,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 +37,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

@ -10,11 +10,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 +24,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 +37,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 +51,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 +65,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

@ -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)