getPendingWebhookEventCountWithHttpInfo method
Future<Response>
getPendingWebhookEventCountWithHttpInfo(
- String tenantId, [
- GetPendingWebhookEventCountOptions? options
Performs an HTTP 'GET /api/v1/pending-webhook-events/count' operation and returns the Response.
Parameters:
Implementation
Future<Response> getPendingWebhookEventCountWithHttpInfo(String tenantId, [ GetPendingWebhookEventCountOptions? 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;
// 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,
);
}