2016-06-12 22:39:00 +00:00
|
|
|
package footballdata
|
|
|
|
|
2016-07-09 18:59:24 +00:00
|
|
|
// DEPRECATED.
|
|
|
|
//
|
2016-06-12 22:39:00 +00:00
|
|
|
type SoccerSeasonRequest struct{ request }
|
|
|
|
|
2016-07-09 18:59:24 +00:00
|
|
|
// DEPRECATED.
|
|
|
|
//
|
2016-06-25 21:22:52 +00:00
|
|
|
// Do executes the request.
|
2016-06-12 22:39:00 +00:00
|
|
|
func (r SoccerSeasonRequest) Do() (s SoccerSeason, err error) {
|
|
|
|
d, _, err := r.doJson("GET")
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
err = d.Decode(&s)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2016-07-09 18:59:24 +00:00
|
|
|
// DEPRECATED.
|
|
|
|
//
|
2016-06-26 10:24:59 +00:00
|
|
|
// SoccerSeason prepares a request to fetch the complete list of soccer seasons.
|
2016-06-26 10:57:14 +00:00
|
|
|
func (c *Client) SoccerSeason(id uint64) SoccerSeasonRequest {
|
2016-06-13 17:47:09 +00:00
|
|
|
return SoccerSeasonRequest{c.req("soccerseasons/%d", id)}
|
2016-06-12 22:39:00 +00:00
|
|
|
}
|