Crates.io | suplapi |
lib.rs | suplapi |
version | 0.2.1 |
source | src |
created_at | 2021-09-20 20:58:59.743019 |
updated_at | 2021-09-24 21:18:48.874173 |
description | Access Nelonen Media Supla API from Rust |
homepage | |
repository | https://gitlab.com/x7Gv/suplapi-rs/ |
max_upload_size | |
id | 454151 |
size | 13,290 |
Access Nelonen Media Supla API from Rust.
supla-playlist.nm-services.nelonenmedia.fi
APIprod-component-api.nm-services.nelonenmedia.fi/api/radio-programs
APIextern crate suplapi;
let groove_fm = 70;
let supla = suplapi::SuplAPI::<suplapi::http::default::Client>::default();
let playlist = supla.playlist(groove_fm, 20, None).await.unwrap();
assert!(playlist.items.len() == 20);
The crate has heavily drawn inspiration from the excellent wikipedia crate.