Interface SessionService
-
- All Implemented Interfaces:
public interface SessionService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
SessionService.WithRawResponse
A view of SessionService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract SessionService.WithRawResponse
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. abstract SessionService
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. SessionCreateResponse
create()
Create an ephemeral API token for use in client-side applications with the Realtime API. abstract SessionCreateResponse
create(SessionCreateParams params, RequestOptions requestOptions)
SessionCreateResponse
create(SessionCreateParams params)
SessionCreateResponse
create(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.update
client event.It responds with a session object, plus a
client_secret
key 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)
-
-
-
-