Skip to content

Commit f489d70

Browse files
authored
Merge pull request #9 from syamsoul/newfeature/webhooks-api
webhooks (delete api)
2 parents bea7edf + 1cfde27 commit f489d70

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Requirements
44

5-
PHP 7.2 and later.
5+
PHP 8.0 and later.
66

77
The following PHP extensions are required:
88

lib/Traits/Api/Webhook.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,14 @@ public function getWebhook(string $webhookId): ModelWebHook
2727
{
2828
return $this->mapper->map($this->request('GET', "webhooks/$webhookId/"), new ModelWebHook());
2929
}
30+
31+
/**
32+
*
33+
* @param string $webhookId
34+
* @return mixed
35+
*/
36+
public function deleteWebhook(string $webhookId): mixed
37+
{
38+
return $this->request('DELETE', "webhooks/$webhookId/");
39+
}
3040
}

0 commit comments

Comments
 (0)