blockUserWithHttpInfo method
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:
-
String type (required):
-
String id (required):
-
BlockUserRequest blockUserRequest (required):
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,
);
}