2.3 KiB
2.3 KiB
{{classname}}
All URIs are relative to https://statsapi.mlb.com
Method | HTTP request | Description |
---|---|---|
GetTeamAttendance | Get /api/v1/attendance | Get team attendance |
GetTeamAttendance
AttendanceRestObject GetTeamAttendance(ctx, optional) Get team attendance
Required Parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *AttendanceApiGetTeamAttendanceOpts | optional parameters | nil if no parameters |
Optional Parameters
Optional parameters are passed through a pointer to a AttendanceApiGetTeamAttendanceOpts struct
Name | Type | Description | Notes |
---|---|---|---|
teamId | **optional.Interface of []int32** | Unique Team Identifier. Format: 141, 147, etc | |
leagueId | **optional.Interface of []int32** | Comma delimited list of Unique league identifiers | |
season | **optional.Interface of []string** | Comma delimited list of Seasons of play | |
leagueListId | optional.Interface of LeagueListsEnum | Unique League List Identifier | |
gameType | **optional.Interface of []GameTypeEnum** | Type of Game. Available types in /api/v1/gameTypes | |
date | optional.String | Date of Game. Format: YYYY-MM-DD | |
startDate | optional.String | Start date for range of data (must be used with end date). Format: MM/DD/YYYY | |
endDate | optional.String | End date for range of data (must be used with start date). Format: MM/DD/YYYY | |
fields | **optional.Interface of []string** | Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]