2016-06-12 22:39:00 +00:00
|
|
|
package footballdata
|
|
|
|
|
|
|
|
import (
|
|
|
|
"encoding/json"
|
|
|
|
"net/url"
|
|
|
|
)
|
|
|
|
|
|
|
|
type request struct {
|
2016-06-26 10:57:14 +00:00
|
|
|
fdClient *Client
|
2016-06-25 10:15:58 +00:00
|
|
|
path string
|
|
|
|
urlValues url.Values
|
2016-06-12 22:39:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r request) doJson(method string) (*json.Decoder, ResponseMeta, error) {
|
2016-06-25 10:15:58 +00:00
|
|
|
return r.fdClient.doJson(method, r.path, r.urlValues)
|
2016-06-12 22:39:00 +00:00
|
|
|
}
|