Interface SessionServiceAsync
-
- All Implemented Interfaces:
public interface SessionServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSessionServiceAsync.WithRawResponseA view of SessionServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract SessionServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract SessionServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<SessionCreateResponse>create()Create an ephemeral API token for use in client-side applications with the Realtime API. abstract CompletableFuture<SessionCreateResponse>create(SessionCreateParams params, RequestOptions requestOptions)CompletableFuture<SessionCreateResponse>create(SessionCreateParams params)CompletableFuture<SessionCreateResponse>create(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract SessionServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract SessionServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<SessionCreateResponse> create()
Create an ephemeral API token for use in client-side applications with the Realtime API. Can be configured with the same session parameters as the
session.updateclient event.It responds with a session object, plus a
client_secretkey which contains a usable ephemeral API token that can be used to authenticate browser clients for the Realtime API.
-
create
abstract CompletableFuture<SessionCreateResponse> create(SessionCreateParams params, RequestOptions requestOptions)
-
create
CompletableFuture<SessionCreateResponse> create(SessionCreateParams params)
-
create
CompletableFuture<SessionCreateResponse> create(RequestOptions requestOptions)
-
-
-
-