freedom-api 4.1.0

Freedom API for Rustaceans
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use freedom_api::prelude::*;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let config = Config::builder()
        .environment(Test)
        .key_from_env()?
        .secret_from_env()?
        .build()?;

    let client = Client::from_config(config);
    let status = client.get_payload_status(1, "TEST_Band", None).await?;

    println!("{:#?}", status);

    Ok(())
}