fpl_client 0.1.2

A Rust wrapper for the Fantasy Premier League API
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::client::FplApiClient;
use crate::models::status::EventStatus;
use anyhow::Result;

impl FplApiClient {
    /// gets the evene-status endpoint
    pub async fn get_event_status(&self) -> Result<EventStatus> {
        let status: EventStatus = self.gets("event-status/").await?;
        Ok(status)
    }
}