|
| __construct (?string $apiKey, string $apiEndpoint, int $socketTimeout=10, int $streamTimeout=30) |
|
| callExternalMethod (string $method, ?array $requestParams=null, string $httpMethod='') |
|
| setApiKey (string $apiKey) |
|
См. определение в файле ExternalSender.php строка 17
◆ __construct()
__construct |
( |
?string | $apiKey, |
|
|
string | $apiEndpoint, |
|
|
int | $socketTimeout = 10, |
|
|
int | $streamTimeout = 30 ) |
◆ callExternalMethod()
callExternalMethod |
( |
string | $method, |
|
|
?array | $requestParams = null, |
|
|
string | $httpMethod = '' ) |
- Аргументы
-
string | $method | |
array | null | $requestParams | |
string | $httpMethod | see class constants \Bitrix\Main\Web\HttpClient |
- Возвращает
- HttpRequestResult
Замещает ExternalSender.
См. определение в файле ExternalSender.php строка 34
◆ checkResponse()
checkResponse |
( |
array | $response | ) |
|
|
protected |
◆ convertRequestParams()
convertRequestParams |
( |
array | $requestParams | ) |
|
|
protected |
◆ getErrorMessageByCode()
getErrorMessageByCode |
( |
?string | $errorCode | ) |
|
|
protected |
◆ parseExternalResponse()
parseExternalResponse |
( |
string | $httpResult | ) |
|
|
protected |