| Crates.io | ultrahook |
| lib.rs | ultrahook |
| version | 0.1.2 |
| created_at | 2022-04-28 10:49:43.340569+00 |
| updated_at | 2022-04-28 14:58:43.326657+00 |
| description | A client for recieving webhooks from UltraHook |
| homepage | |
| repository | https://github.com/OxIonics/ultrahook_rs |
| max_upload_size | |
| id | 576730 |
| size | 34,443 |
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);
}
}