createV1PageReactWithHttpInfo method

Future<Response> createV1PageReactWithHttpInfo(
  1. String tenantId,
  2. String urlId, [
  3. String? title
])

Performs an HTTP 'POST /page-reacts/v1/likes/{tenantId}' operation and returns the Response. Parameters:

Implementation

Future<Response> createV1PageReactWithHttpInfo(String tenantId, String urlId, [ String? title ]) async {
  // ignore: prefer_const_declarations
  final path = r'/page-reacts/v1/likes/{tenantId}'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'urlId', urlId));
  if (title != null) {
    queryParams.addAll(_queryParams('', 'title', title));
  }

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}