getPendingWebhookEventCountWithHttpInfo method

Future<Response> getPendingWebhookEventCountWithHttpInfo(
  1. String tenantId, {
  2. String? commentId,
  3. String? externalId,
  4. String? eventType,
  5. String? type,
  6. String? domain,
  7. double? attemptCountGT,
})

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

Implementation

Future<Response> getPendingWebhookEventCountWithHttpInfo(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/pending-webhook-events/count';

  // 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));
  }

  const contentTypes = <String>[];


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