createFeedPostPublicWithHttpInfo method
Future<Response>
createFeedPostPublicWithHttpInfo(
- String tenantId,
- CreateFeedPostParams createFeedPostParams, [
- CreateFeedPostPublicOptions? options
Performs an HTTP 'POST /feed-posts/{tenantId}' operation and returns the Response.
Parameters:
-
String tenantId (required):
-
CreateFeedPostParams createFeedPostParams (required):
-
String broadcastId:
-
String sso:
Implementation
Future<Response> createFeedPostPublicWithHttpInfo(String tenantId, CreateFeedPostParams createFeedPostParams, [ CreateFeedPostPublicOptions? options ]) async {
final broadcastId = options?.broadcastId;
final sso = options?.sso;
// ignore: prefer_const_declarations
final path = r'/feed-posts/{tenantId}'
.replaceAll('{tenantId}', tenantId);
// ignore: prefer_final_locals
Object? postBody = createFeedPostParams;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (broadcastId != null) {
queryParams.addAll(_queryParams('', 'broadcastId', broadcastId));
}
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,
);
}