blockUserWithHttpInfo method

Future<Response> blockUserWithHttpInfo(
  1. String type,
  2. String id,
  3. BlockUserRequest blockUserRequest
)

Block user on a call

Block a user, preventing them from joining the call until they are unblocked. Sends events: - call.blocked_user Required permissions: - BlockUser

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> blockUserWithHttpInfo(
  String type,
  String id,
  BlockUserRequest blockUserRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call/{type}/{id}/block'
      .replaceAll('{type}', type)
      .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = blockUserRequest;

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

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

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