getPendingWebhookEventsWithHttpInfo method

Future<Response> getPendingWebhookEventsWithHttpInfo(
  1. String tenantId, [
  2. GetPendingWebhookEventsOptions? options
])

Performs an HTTP 'GET /api/v1/pending-webhook-events' operation and returns the Response. Parameters:

Implementation

Future<Response> getPendingWebhookEventsWithHttpInfo(String tenantId, [ GetPendingWebhookEventsOptions? options ]) async {
  final commentId = options?.commentId;
  final externalId = options?.externalId;
  final eventType = options?.eventType;
  final type = options?.type;
  final domain = options?.domain;
  final attemptCountGT = options?.attemptCountGT;
  final skip = options?.skip;
  // ignore: prefer_const_declarations
  final path = r'/api/v1/pending-webhook-events';

  // ignore: prefer_final_locals
  Object? postBody;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (commentId != null) {
    queryParams.addAll(_queryParams('', 'commentId', commentId));
  }
  if (externalId != null) {
    queryParams.addAll(_queryParams('', 'externalId', externalId));
  }
  if (eventType != null) {
    queryParams.addAll(_queryParams('', 'eventType', eventType));
  }
  if (type != null) {
    queryParams.addAll(_queryParams('', 'type', type));
  }
  if (domain != null) {
    queryParams.addAll(_queryParams('', 'domain', domain));
  }
  if (attemptCountGT != null) {
    queryParams.addAll(_queryParams('', 'attemptCountGT', attemptCountGT));
  }
  if (skip != null) {
    queryParams.addAll(_queryParams('', 'skip', skip));
  }

  const contentTypes = <String>[];


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