rte-tempo
Get the Tempo day from api-couleur-tempo.fr
Example:
use TempoApiClient;
async
Contributing
Don't hesitate to send patches to f@vi-di.fr or on github (TODO)
Get the Tempo day from api-couleur-tempo.fr
Example:
use rte_tempo::TempoApiClient;
#[tokio::main]
async fn main() {
let client = TempoApiClient::default();
let tempo_today = client.get_tempo_today().await.unwrap();
println!("Today is a {:?} day", tempo_today.day_type);
let stats = client.get_period_stats().await.unwrap();
println!("Stats for period {}: {:#?}", stats.period, stats);
}
Don't hesitate to send patches to f@vi-di.fr or on github (TODO)