https://github.com/berkguzel/fpl-go
Go client for Fantasy Premier League API
https://github.com/berkguzel/fpl-go
fpl fpl-api go golang
Last synced: 6 months ago
JSON representation
Go client for Fantasy Premier League API
- Host: GitHub
- URL: https://github.com/berkguzel/fpl-go
- Owner: berkguzel
- License: apache-2.0
- Created: 2021-02-19T20:21:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T20:44:16.000Z (over 2 years ago)
- Last Synced: 2024-06-20T06:30:30.070Z (almost 2 years ago)
- Topics: fpl, fpl-api, go, golang
- Language: Go
- Homepage:
- Size: 5.5 MB
- Stars: 4
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fpl-go
This package presents a client for [Fantasy Premier League](https://fantasy.premierleague.com/) API.
```go
package main
import (
"fmt"
"github.com/berkguzel/fpl-go/fpl"
)
func main(){
c := fpl.NewClient(nil)
// list the standings in the league
standings, err := c.GetStandings("league id")
if err != nil{
fmt.Println(err)
}
// list the info about the manager
m, err := c.GetManager("manager id")
if err != nil {
fmt.Println(err)
}
}
```
# FEATURES
- League
- Standings
- New entries
- Team info
- Manager specific information
- Points of the manager for all game weeks
- Info about the clssic leagues and cups
- Fixture
- General fixture
- Weekly fixture
- Player specific information
- Code of player in FPL
- Next fixtures
- Information for previous seasons and next fixtures
- Detailed info
- Weekly events
- Points of the manager and player for game weeks
- Info about FPL players by week
- General
- Info about current EPL clubs and game weeks
- Game setttings
- Phases of EPL season
#### You can find an idea about how to use this client in this [repo](https://github.com/berkguzel/fpl-discord-bot).