Update example code in README
- Replaced AuthToken member assignment to SetToken call.api/rm-interface
parent
5418ecc69e
commit
9d3290ff36
|
@ -30,7 +30,7 @@ func main() {
|
||||||
client := footballdata.NewClient(http.DefaultClient)
|
client := footballdata.NewClient(http.DefaultClient)
|
||||||
|
|
||||||
// Tell it to use our API token
|
// Tell it to use our API token
|
||||||
client.AuthToken = "<insert your api token here>"
|
client.SetToken("<insert your api token here>")
|
||||||
|
|
||||||
// Get list of seasons...
|
// Get list of seasons...
|
||||||
seasons, err := client.SoccerSeasons().Do()
|
seasons, err := client.SoccerSeasons().Do()
|
||||||
|
@ -44,4 +44,4 @@ func main() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue