Function ttrss_api::get_api_level

source ·
pub fn get_api_level() -> Result<Response, TTRSSAPIError>
Expand description

Get API level.

Examples found in repository?
examples/simple.rs (line 5)
4
5
6
7
8
9
10
fn main() {
    let apilevel: Option<ttrss_api::ApiLevel> = match ttrss_api::get_api_level().expect("Failed to get response").content {
        ttrss_api::Content::GetApiLevel(x) => { Some(x) },
        _ => None,
    };
    println!("API Level: {}", apilevel.unwrap().level);
}