Fantasy Premier League API Wrapper (fpl_client)
A lightweight, asynchronous Rust wrapper for the official Fantasy Premier League API. This library provides deserialized structs and a simplified interface to easily interact with FPL data in Rust applications.
Features
- Asynchronous: Built with
async/awaitfor efficient, non-blocking HTTP requests. - Strongly Typed: Provides deserialized Rust structs for FPL data models.
- Simple Interface: Easy-to-use client for fetching league standings, player data, and more.
Disclaimer
Note: The official FPL API is undocumented, meaning the exact data structures and responses can change or have unexpected edge cases. While the structs in this library are documented to the best of my knowledge, deserialization errors may occasionally occur. Be cautious!
Installation
Add this to your Cargo.toml:
[]
= "0.1.1"
or run
Usage
Here is a basic example of how to use the client to fetch league standings:
use FplApiClient;
use LeagueStandings;
async
Documentation
Can be found at https://docs.rs/fpl_client/0.1.1/fpl_client/