getGifsTrendingWithHttpInfo method
Performs an HTTP 'GET /gifs/trending/{tenantId}' operation and returns the Response.
Parameters:
Implementation
Future<Response> getGifsTrendingWithHttpInfo(String tenantId, [ GetGifsTrendingOptions? options ]) async {
final locale = options?.locale;
final rating = options?.rating;
final page = options?.page;
// 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,
);
}