listSuppressionWithHttpInfo method
List suppression entries
List all suppression entries for the account.
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> listSuppressionWithHttpInfo({ int? page, int? perPage, String? type, String? search, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/suppression';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (perPage != null) {
queryParams.addAll(_queryParams('', 'per_page', perPage));
}
if (type != null) {
queryParams.addAll(_queryParams('', 'type', type));
}
if (search != null) {
queryParams.addAll(_queryParams('', 'search', search));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}