getGifsSearchWithHttpInfo method
Future<Response>
getGifsSearchWithHttpInfo(
- String tenantId,
- String search, [
- GetGifsSearchOptions? options
Performs an HTTP 'GET /gifs/search/{tenantId}' operation and returns the Response.
Parameters:
Implementation
Future<Response> getGifsSearchWithHttpInfo(String tenantId, String search, [ GetGifsSearchOptions? options ]) async {
final locale = options?.locale;
final rating = options?.rating;
final page = options?.page;
// ignore: prefer_const_declarations
final path = r'/gifs/search/{tenantId}'
.replaceAll('{tenantId}', tenantId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'search', search));
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,
);
}