getWebhook function

Future<ApiResponse<Object?>> getWebhook(
  1. ExsitedClient client,
  2. Object webhookId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/webhooks/{webhook_id}

One webhook delivery, the whk_ id a delivery carries; no route lists them, so .dto is null and the body is read through .map.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> getWebhook(
  ExsitedClient client,
  Object webhookId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(WebhooksUrls.webhook,
        pathParams: {'webhook_id': webhookId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);