queryCallsWithHttpInfo method

Future<Response> queryCallsWithHttpInfo(
  1. QueryCallsRequest queryCallsRequest, {
  2. String? connectionId,
})

Query call

Query calls with filter query Required permissions: - ReadCall

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> queryCallsWithHttpInfo(
  QueryCallsRequest queryCallsRequest, {
  String? connectionId,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/video/calls';

  // ignore: prefer_final_locals
  Object? postBody = queryCallsRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  if (connectionId != null) {
    queryParams.addAll(_queryParams('', 'connection_id', connectionId));
  }

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}