golang implementation of the f1-fantasy-api project.
The following APIs are currently supported:
- Get list of drivers & constructors
- Get list of circuits
- Retrieve leaderboard for a specific league
If you would like to see more features supported, please open an issue or send a pull request.
go get github.com/vbonduro/f1-fantasy-api-go
You can use either the public or authenticated APIs.
The public API can be instantiated with: f1fantasy.NewApi()
. The Public API does not require login credentials but has
limited functionality.
The authenticated API can be instantiated with f1fantasy.NewAuthenticatedApi(user,password)
. An authenticated API has access
to all functionality from this library.
All public API implementations can be found in the pkg/f1fantasy
directory.
See here for an example program.