Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

543 B
Raw Blame
use macro_service_urls::StaticFileServiceUrl;
use static_file_service_client::StaticFileServiceClient;
use std::env;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let internal_auth_key =
        env::var("INTERNAL_API_SECRET_KEY").expect("INTERNAL_API_SECRET_KEY must be set");
    let url = StaticFileServiceUrl::new()?.to_string();
    let client = StaticFileServiceClient::new(internal_auth_key, url);
    let res = client
        .put_file("http://localhost:8081/some_file.jpg")
        .await?;
    dbg!(&res);
    Ok(())
}