Skip to main content

Crate videocall_meeting_client

Crate videocall_meeting_client 

Source
Expand description

Cross-platform REST client for the videocall.rs meeting API.

Works on WASM (browser), desktop, and mobile targets via reqwest.

§Example

use videocall_meeting_client::{MeetingApiClient, AuthMode};

// Browser: cookies are sent automatically
let client = MeetingApiClient::new("http://localhost:8081", AuthMode::Cookie);

// Native / mobile: use a bearer token
let client = MeetingApiClient::new(
    "http://localhost:8081",
    AuthMode::Bearer("eyJ...".to_string()),
);

let profile = client.get_profile().await?;
println!("Logged in as: {}", profile.email);

Re-exports§

pub use error::ApiError;
pub use videocall_meeting_types;

Modules§

auth
Authentication and session endpoints: /session, /profile, /logout.
error
Error types for the meeting API client.
meetings
Meeting CRUD endpoints: create, list, get, delete.
participants
Participant action endpoints: join, leave, status, refresh token.
waiting_room
Waiting room management endpoints: list waiting, admit, admit-all, reject.

Structs§

MeetingApiClient
A typed REST client for the videocall.rs meeting API.

Enums§

AuthMode
How the client authenticates with the meeting API.