getSession method

Future<GetSessionResponse> getSession({
  1. required String portalId,
  2. required String sessionId,
})

Gets information for a secure browser session.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter portalId : The ID of the web portal for the session.

Parameter sessionId : The ID of the session.

Implementation

Future<GetSessionResponse> getSession({
  required String portalId,
  required String sessionId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/portals/${Uri.encodeComponent(portalId)}/sessions/${Uri.encodeComponent(sessionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSessionResponse.fromJson(response);
}