1 | <?php |
||
6 | class Webhook extends Base |
||
7 | { |
||
8 | /** |
||
9 | * Private constructor so only the client can create this |
||
10 | * @param Client $client |
||
11 | */ |
||
12 | 16 | public function __construct($client) |
|
17 | |||
18 | /** |
||
19 | * Trigger a Datatrics webhooke |
||
20 | * @param string $channel The webhook channel |
||
21 | * @param string $type The webhook type |
||
22 | * @param array $webhook The payload data |
||
23 | * @return object Result of the request |
||
24 | */ |
||
25 | public function Send($channel, $type, $webhook) |
||
29 | } |
||
30 |