Expand description

This library provides access to the DAPNET v1 API.

Details of the API are available here and here.

Currently the library focuses on reading data from the API. The only non-idempotent operation it supports is sending a new call/page/message.

Example

use dapnet_api::{Call, Client};

#[tokio::main]
async fn main() {
    let client = Client::new("m0nxn", "my_super_secret_password");

    client
        .new_call(&Call::new(
            "M0NXN: this is a test".to_string(),
            vec!["m0nxn".to_string()],
            vec!["uk-all".to_string()],
        ))
        .await
        .unwrap();

    let calls = client.get_calls_by("m0nxn").await.unwrap();
    println!("calls: {:?}", calls);
}

Structs