UTDApiClient class

HTTP client for the UTD Stream Engine API.

The engine is fronted by two hosts and the kit talks to both:

  • token/auth (/api/v1/token) → defaultBaseUrl (https://udt-stream.com)
  • in-room ops (/api/v1/rooms/...: seats, speakers, roles, bans, participants) → defaultEngineBaseUrl (https://engine.udt-stream.com, grey-cloud)

This class is a single-baseUrl client; the controller instantiates it once per host (see UTDRoomController.initApi).

Constructors

UTDApiClient({String baseUrl = defaultBaseUrl, String? appId, String? appKey, Dio? dio})
Creates a new UTDApiClient.

Properties

baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String path, {Map<String, dynamic>? data, Map<String, dynamic>? queryParameters}) Future<Map<String, dynamic>>
dispose() → void
Dispose resources.
get(String path, {Map<String, dynamic>? queryParameters}) Future<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String path, {Map<String, dynamic>? data}) Future<Map<String, dynamic>>
put(String path, {Map<String, dynamic>? data}) Future<Map<String, dynamic>>
toString() String
A string representation of this object.
inherited
updateApiKey(String apiKey) → void
Update the API key (e.g. after re-authentication).
updateToken(String token) → void
Update the authorization token.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultBaseUrl → const String
Default base URL for token generation / auth (POST /api/v1/token).
defaultEngineBaseUrl → const String
Default base URL for in-room operations (/api/v1/rooms/...).