Documentation
¶
Index ¶
- Constants
- func Attendance(params *Params) (body string, err error)
- func AwardRecips(awardID string, params *Params) (body string, err error)
- func Awards(params *Params) (body string, err error)
- func BoxScore(gamePK string, params *Params) (body string, err error)
- func Divisions(params *Params) (body string, err error)
- func LeagueLeaders(params *Params) (body string, err error)
- func LineScore(gamePK string, params *Params) (body string, err error)
- func PlayByPlay(gamePK string, params *Params) (body string, err error)
- func PlayerInfo(personID string, params *Params) (body string, err error)
- func Roster(teamID string, params *Params) (body string, err error)
- func Standings(params *Params) (body string, err error)
- func TeamLeaders(teamID string, params *Params) (body string, err error)
- type Params
Constants ¶
View Source
const ( BaseURL = "https://statsapi.mlb.com/api" Ver = "v1" )
consts
Variables ¶
This section is empty.
Functions ¶
func Attendance ¶
Attendance : get attendance.
func AwardRecips ¶
AwardRecips : get each award recipients.
func LeagueLeaders ¶ added in v0.0.2
LeagueLeaders : get league leaders of given stat.
func PlayByPlay ¶ added in v0.0.2
PlayByPlay : get specific game's play-by-play.
func PlayerInfo ¶ added in v0.0.2
PlayerInfo : get specific player's info.
Types ¶
type Params ¶
type Params struct { TeamID string LeagueID string LeagueListid string Season string Date string GameType string Fields string SportsID string Hydrate string DivisionID string RosterType string Timecode string StandingsType string LeaderCategories string LeaderGameTypes string PlayerPool string StatGroup string StatType string }
Params object
Click to show internal directories.
Click to hide internal directories.