f1-fantasy-api-go

module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT

README

f1-fantasy-api-go

GoDoc Go Report Card License

golang implementation of the f1-fantasy-api project.

Supported Features

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.

Installation

go get github.com/vbonduro/f1-fantasy-api-go

Usage

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.

Directories

Path Synopsis
internal
client
Package client implementation for interacting with the F1 Fantasy website.
Package client implementation for interacting with the F1 Fantasy website.
pkg
f1fantasy
Package f1fantasy provides APIs to access data from the f1 fantasy website.
Package f1fantasy provides APIs to access data from the f1 fantasy website.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL