Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
ExternalSender.php
1<?php
2
4
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}