unBlockUserFromCommentWithHttpInfo method
Future<Response>
unBlockUserFromCommentWithHttpInfo(
- String tenantId,
- String id,
- UnBlockFromCommentParams unBlockFromCommentParams, {
- String? userId,
- String? anonUserId,
Performs an HTTP 'POST /api/v1/comments/{id}/un-block' operation and returns the Response.
Parameters:
-
String tenantId (required):
-
String id (required):
-
UnBlockFromCommentParams unBlockFromCommentParams (required):
-
String userId:
-
String anonUserId:
Implementation
Future<Response> unBlockUserFromCommentWithHttpInfo(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String? userId, String? anonUserId, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/comments/{id}/un-block'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = unBlockFromCommentParams;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'tenantId', tenantId));
if (userId != null) {
queryParams.addAll(_queryParams('', 'userId', userId));
}
if (anonUserId != null) {
queryParams.addAll(_queryParams('', 'anonUserId', anonUserId));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}