Interface SessionService
-
- All Implemented Interfaces:
public interface SessionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSessionService.WithRawResponseA view of SessionService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract SessionService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract SessionServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. SessionCreateResponsecreate()Create an ephemeral API token for use in client-side applications with the Realtime API. abstract SessionCreateResponsecreate(SessionCreateParams params, RequestOptions requestOptions)SessionCreateResponsecreate(SessionCreateParams params)SessionCreateResponsecreate(RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract SessionService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract SessionService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
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 SessionCreateResponse create(SessionCreateParams params, RequestOptions requestOptions)
-
create
SessionCreateResponse create(SessionCreateParams params)
-
create
SessionCreateResponse create(RequestOptions requestOptions)
-
-
-
-