getInboxForwarderEventsWithHttpInfo method

Future<Response> getInboxForwarderEventsWithHttpInfo(
  1. String id, {
  2. int? page,
  3. int? size,
  4. String? sort,
})

Get an inbox forwarder event list

Get inbox ruleset events

Note: This method returns the HTTP Response.

Parameters:

  • String id (required): ID of inbox forwarder

  • int page: Optional page index in inbox forwarder event list pagination

  • int size: Optional page size in inbox forwarder event list pagination

  • String sort: Optional createdAt sort direction ASC or DESC

Implementation

Future<Response> getInboxForwarderEventsWithHttpInfo(String id, { int? page, int? size, String? sort, }) async {
  // ignore: prefer_const_declarations
  final path = r'/forwarders/{id}/events'
    .replaceAll('{id}', id);

  // 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 (size != null) {
    queryParams.addAll(_queryParams('', 'size', size));
  }
  if (sort != null) {
    queryParams.addAll(_queryParams('', 'sort', sort));
  }

  const contentTypes = <String>[];


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