1 | <?php |
||
11 | class MicrosoftTeams |
||
12 | { |
||
13 | /** |
||
14 | * API HTTP client. |
||
15 | * |
||
16 | * @var \GuzzleHttp\Client |
||
17 | */ |
||
18 | protected $httpClient; |
||
19 | |||
20 | /** |
||
21 | * @param \GuzzleHttp\Client $http |
||
22 | */ |
||
23 | public function __construct(HttpClient $http) |
||
27 | |||
28 | /** |
||
29 | * Send a message to a MicrosoftTeams channel. |
||
30 | * |
||
31 | * @param string $url |
||
32 | * @param array $data |
||
33 | * |
||
34 | * @throws CouldNotSendNotification |
||
35 | * |
||
36 | * @return ResponseInterface|null |
||
37 | */ |
||
38 | public function send(string $url, array $data): ?ResponseInterface |
||
59 | } |
||
60 |