fpl_client 0.1.1

A Rust wrapper for the Fantasy Premier League API
Documentation

Fantast Premier League API

This project is a simple wrapper for the official Fantasy Premier League api with deserialized structs and a simpler interface.

Not very in-depth, made this mostly for personal use so will probably add more functions as i need

DESERIALIZATION COULD BE BROKEN I HAVE NOT FOUND A WAY TO VERIFY HOW EXACTLY THE API RETURNS DATA SO THE MODELS COULD BE WRONG

All structs are documented to the best of my knowledge, which means there could be mistakes, so be wary

basic usage:

async fn test_get_league_standings() {
    // create a client
    let client = FplApiClient::new().expect("Failed to create client");

    // call an endpoint
    let standings = client
        .get_league_standings(LEAGUE_ID)
        .await
        .expect("Failed to fetch league standings");