1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
ExternalSender.php
См. документацию.
1<?php
2
3namespace Bitrix\MessageService\Providers\Edna;
4
5use Bitrix\MessageService\Sender\Result\HttpRequestResult;
6use Bitrix\MessageService\Providers\ExternalSender as IExternalSender;
7
8abstract class ExternalSender implements IExternalSender
9{
10 protected const USER_AGENT = 'Bitrix24';
11 protected const CONTENT_TYPE = 'application/json';
12 protected const CHARSET = 'UTF-8';
13
14 protected const WAIT_RESPONSE = true;
15
16 protected string $apiKey;
17 protected string $apiEndpoint;
18
19 protected int $socketTimeout;
20 protected int $streamTimeout;
21
22 public function setApiKey(string $apiKey) : self
23 {
24 $this->apiKey = $apiKey;
25
26 return $this;
27 }
28}