fpl_rs

Crates.iofpl_rs
lib.rsfpl_rs
version0.1.2
sourcesrc
created_at2023-12-08 13:32:50.956258
updated_at2024-02-22 18:01:46.96929
descriptionAn api wrapper for fantasy premier league.
homepage
repository
max_upload_size
id1062026
size66,911
Adam Bannister (AtomsForPeace)

documentation

README

FPL API Wrapper for Rust

License: MIT

Overview

This is a Rust library that serves as an API wrapper for the Fantasy Premier League (FPL) API. It provides convenient methods for interacting with the FPL API, allowing you to retrieve information about players, teams, gameweeks, and more.

Features

  • Retrieve information about all FPL players.
  • Get details about static gameweeks.
  • Fetch static data from the FPL API.

Usage

Here is a simple example of how to use the FPL API wrapper:

use fpl_rs::{Fpl, FplError, Players};

#[tokio::main]
async fn main() {
    // Create a new Fpl instance 
    let mut fpl = Fpl::new();

    // Retrieve information about all FPL players
    match fpl.get_all_players().await {
        Ok(players) => {
            // Process information about all FPL players
            println!("{:?}", players);
        }
        Err(err) => {
            // Handle the error
            eprintln!("Error: {}", err);
        }
    }
}

Documentation

For detailed documentation on the available methods and usage, please refer to the API documentation.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 0

cargo fmt