getGifsTrendingWithHttpInfo method

Future<Response> getGifsTrendingWithHttpInfo(
  1. String tenantId, {
  2. String? locale,
  3. String? rating,
  4. double? page,
})

Performs an HTTP 'GET /gifs/trending/{tenantId}' operation and returns the Response. Parameters:

Implementation

Future<Response> getGifsTrendingWithHttpInfo(String tenantId, { String? locale, String? rating, double? page, }) async {
  // ignore: prefer_const_declarations
  final path = r'/gifs/trending/{tenantId}'
    .replaceAll('{tenantId}', tenantId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (locale != null) {
    queryParams.addAll(_queryParams('', 'locale', locale));
  }
  if (rating != null) {
    queryParams.addAll(_queryParams('', 'rating', rating));
  }
  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }

  const contentTypes = <String>[];


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