1 | <?php |
||
7 | class Webhook extends Base |
||
8 | { |
||
9 | /** |
||
10 | * @return array|null |
||
11 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
12 | */ |
||
13 | public function listWebhooks(): ?array |
||
17 | |||
18 | /** |
||
19 | * @param string $uuid |
||
20 | * @return array|null |
||
21 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
22 | */ |
||
23 | public function getWebhook(string $uuid): ?array |
||
27 | |||
28 | /** |
||
29 | * @param array $data |
||
30 | * @return array|null |
||
31 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
32 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
33 | */ |
||
34 | public function createWebhook(array $data): ?array |
||
46 | |||
47 | /** |
||
48 | * @param array $data |
||
49 | * @param string $uuid |
||
50 | * @return array|null |
||
51 | * @throws \Fenerum\API\Exceptions\FenerumApiException |
||
52 | * @throws \Fenerum\API\Exceptions\FenerumValidationException |
||
53 | */ |
||
54 | public function updateWebhook(array $data, string $uuid): ?array |
||
66 | } |
||
67 |