ultrahook

Crates.ioultrahook
lib.rsultrahook
version0.1.2
sourcesrc
created_at2022-04-28 10:49:43.340569
updated_at2022-04-28 14:58:43.326657
descriptionA client for recieving webhooks from UltraHook
homepage
repositoryhttps://github.com/OxIonics/ultrahook_rs
max_upload_size
id576730
size34,443
Mike Birtwell (mbirtwell)

documentation

README

UltraHook Client

Rust client for https://www.ultrahook.com/

Uses UltraHook for receiving webhooks without a public internet presence.

There's just one function really get_webhooks.

Example:

let (config, stream) = get_webhooks(&key, &subdomain).await?;
println!("Receiving webhooks forwarded from {}", config.host);
let mut responses = Box::pin(stream);
while let Some(response) = responses.next().await {
    let response = response?;
    if matches!(response, UltraHookEvent::Request(..) {
        println!("Webhook details:");
        println!("{:?}", response);
    }
}
Commit count: 0

cargo fmt