videosdk-server-sdk
Rust server SDK for the VideoSDK v2 REST APIs.
Install
[]
= "0.1"
= { = "1", = ["rt-multi-thread", "macros"] }
Quickstart
use Client;
async
Rust server SDK for the VideoSDK v2 REST APIs.
[dependencies]
videosdk-server-sdk = "0.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
use videosdk::Client;
#[tokio::main]
async fn main() -> Result<(), videosdk::Error> {
// Reads VIDEOSDK_API_KEY and VIDEOSDK_SECRET from the environment.
let client = Client::new()?;
// ...or pass them explicitly:
let client = Client::builder()
.api_key("VIDEOSDK_API_KEY")
.secret("VIDEOSDK_SECRET")
.max_retries(3)
.build()?;
Ok(())
}