setCommentTextWithHttpInfo method
Future<Response>
setCommentTextWithHttpInfo(
- String tenantId,
- String commentId,
- String broadcastId,
- CommentTextUpdateRequest commentTextUpdateRequest, [
- SetCommentTextOptions? options,
Performs an HTTP 'POST /comments/{tenantId}/{commentId}/update-text' operation and returns the Response.
Parameters:
Implementation
Future<Response> setCommentTextWithHttpInfo(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, [ SetCommentTextOptions? options ]) async {
final editKey = options?.editKey;
final sso = options?.sso;
// ignore: prefer_const_declarations
final path = r'/comments/{tenantId}/{commentId}/update-text'
.replaceAll('{tenantId}', tenantId)
.replaceAll('{commentId}', commentId);
// ignore: prefer_final_locals
Object? postBody = commentTextUpdateRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
if (editKey != null) {
queryParams.addAll(_queryParams('', 'editKey', editKey));
}
if (sso != null) {
queryParams.addAll(_queryParams('', 'sso', sso));
}
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}