Update example code in README

- Replaced AuthToken member assignment to SetToken call.
api/rm-interface
Icedream 2016-06-26 12:11:24 +02:00 committed by GitHub
parent 5418ecc69e
commit 9d3290ff36
1 changed files with 2 additions and 2 deletions

View File

@ -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()