diff --git a/src/Model/Webhook/ShowResponse.php b/src/Model/Webhook/ShowResponse.php index bf68bbf..7521ce2 100644 --- a/src/Model/Webhook/ShowResponse.php +++ b/src/Model/Webhook/ShowResponse.php @@ -33,8 +33,17 @@ final class ShowResponse implements ApiResponse return $model; } - public function getWebhookUrls(): ?array + public function getWebhookUrl(): ?string { - return $this->webhook['urls'] ?? null; + foreach ($this->getWebhookUrls() as $url) { + return $url; + } + + return null; + } + + public function getWebhookUrls(): array + { + return $this->webhook['urls'] ?? []; } }