tapis-notifications 0.2.0

The Tapis Notifications API provides for management of subscriptions and event publication
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use tapis_notifications::TapisNotifications;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let jwt_token = std::env::var("TAPIS_TOKEN").ok();
    let base_url = std::env::var("TAPIS_BASE_URL")
        .unwrap_or_else(|_| "https://dev.develop.tapis.io/v3".to_string());

    let client = TapisNotifications::new(&base_url, jwt_token.as_deref())?;
    println!(
        "Initialized TapisNotifications against {}",
        client.config().base_path
    );

    Ok(())
}