#api #ham-radio #amateur-radio #networking #api-calls #dapnet #pocsag

dapnet-api

Client for the DAPNET amateur paging network API

4 releases

0.2.1 Oct 15, 2022
0.2.0 Mar 11, 2022
0.1.1 Mar 6, 2022
0.1.0 Mar 4, 2022

#13 in #amateur-radio

MIT license

17KB
355 lines

DAPNET Rust API

CI Crates.io docs.rs dependency status

Rust client for the DAPNET amateur paging network API.


lib.rs:

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);
}

Dependencies

~5–19MB
~274K SLoC