unblockUserWithHttpInfo method
Future<Response>
unblockUserWithHttpInfo(
- String type,
- String id,
- UnblockUserRequest unblockUserRequest
Unblocks user on a call
Removes the block for a user on a call. The user will be able to join the call again. Sends events: - call.unblocked_user Required permissions: - BlockUser
Note: This method returns the HTTP Response
.
Parameters:
-
String type (required):
-
String id (required):
-
UnblockUserRequest unblockUserRequest (required):
Implementation
Future<Response> unblockUserWithHttpInfo(
String type,
String id,
UnblockUserRequest unblockUserRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/video/call/{type}/{id}/unblock'
.replaceAll('{type}', type)
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = unblockUserRequest;
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,
);
}