queryCallParticipantsWithHttpInfo method

Future<Response> queryCallParticipantsWithHttpInfo(
  1. String id,
  2. String type,
  3. QueryCallParticipantsRequest queryCallParticipantsRequest, {
  4. int? limit,
})

Query call participants

Returns a list of participants connected to the call

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> queryCallParticipantsWithHttpInfo(
  String id,
  String type,
  QueryCallParticipantsRequest queryCallParticipantsRequest, {
  int? limit,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call/{type}/{id}/participants'
      .replaceAll('{id}', id)
      .replaceAll('{type}', type);

  // ignore: prefer_final_locals
  Object? postBody = queryCallParticipantsRequest;

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

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

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

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