pwr_airly 0.2.0

An unofficial Rust client for the Airly's API (https://developer.airly.eu/docs)
Documentation
use std::error::Error;
use std::result::Result;

use pwr_airly::AirlyClient;

fn main() -> Result<(), Box<Error>> {
    let airly = AirlyClient::new("my-api-key");

    // To query for a specific installation, you can use the `installations().get()` method.
    // It models the <https://developer.airly.eu/docs#endpoints.installations.getbyid> endpoint.
    let response = airly.installations().get(250)?;

    // After the response has been fetched, you can use the `rate_limit()` method to access
    // information about the rate-limiting (i.e. how many requests per API key you can perform), and
    // you can use the `model()` method to access the model (contents) of the response.
    println!("{:#?}", response.rate_limit());
    println!("{:#?}", response.model());

    Ok(())
}