getConnection method

Future<GetConnectionResponse> getConnection({
  1. required String connectionId,
})

Get information about the connection with the provided id.

May throw GoneException. May throw LimitExceededException. May throw ForbiddenException.

Implementation

Future<GetConnectionResponse> getConnection({
  required String connectionId,
}) async {
  ArgumentError.checkNotNull(connectionId, 'connectionId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/%40connections/${Uri.encodeComponent(connectionId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetConnectionResponse.fromJson(response);
}