queryCallParticipantsWithHttpInfo method
Future<Response>
queryCallParticipantsWithHttpInfo(
- String id,
- String type,
- QueryCallParticipantsRequest queryCallParticipantsRequest, {
- int? limit,
Query call participants
Returns a list of participants connected to the call
Note: This method returns the HTTP Response
.
Parameters:
-
String id (required):
-
String type (required):
-
QueryCallParticipantsRequest queryCallParticipantsRequest (required):
-
int limit:
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,
);
}