fpl_api

Crates.iofpl_api
lib.rsfpl_api
version0.5.0
sourcesrc
created_at2024-10-02 13:22:30.720446
updated_at2024-11-02 13:05:25.572359
descriptionRust bindings for the Fantasy PL API
homepage
repository
max_upload_size
id1394038
size35,313
(chvish)

documentation

README

FPL API

  • Rust bindings for the Fantasy Premier League API

Example

        let client = FPLClient::new();
        let manager = client.get_manager_details("3332624").await.unwrap();
        assert_eq!(manager.player_first_name, "Vishal".to_string());
        assert_eq!(manager.name, "Gakpo Ke Gunde".to_string());

        let gw_team = client
            .get_manager_team_for_gw("3332624", "4")
            .await
            .unwrap();
        assert_eq!(gw_team.active_chip, None);

        let transfers = client.get_manager_transfers("3332624").await.unwrap();
        assert!(transfers.len() > 0);

Commit count: 0

cargo fmt