Expand description
§Coffrify — Rust SDK
Official Rust client for Coffrify, encrypted file transfer infrastructure.
§Quickstart
let coffrify = coffrify::Client::new(std::env::var("COFFRIFY_API_KEY")?)?;
let res: serde_json::Value = coffrify
.post("/transfers", serde_json::json!({
"files": [{"name": "report.pdf", "size": 1_240_000, "mime_type": "application/pdf"}],
"expires_in_hours": 72,
"max_downloads": 10,
}))
.await?;
println!("{}", res["share_url"]);