This commit is contained in:
root
2025-11-13 19:52:28 +03:00
parent 8aeeb05b7d
commit 807dec3b6c
4646 changed files with 163445 additions and 626017 deletions

View File

@@ -9,12 +9,11 @@ use Bitrix\Main\Service\MicroService\BaseSender;
class ApiClient extends BaseSender
{
protected const SERVICE_ENDPOINT_OPTION = 'service_endpoint';
protected const DEFAULT_ENDPOINT = 'https://unc.bitrix24.tech';
protected const ENDPOINTS = [
'ru' => 'https://unc.bitrix24.tech',
'en' => 'https://unc-eu.bitrix.info',
];
protected const RU_REGIONS = ['ru', 'by', 'kz', 'uz'];
protected const RU_REGIONS = ['ru', 'kz', 'by', 'uz', 'am', 'az', 'ge', 'kg'];
protected $customEndpoint;
@@ -69,4 +68,14 @@ class ApiClient extends BaseSender
]
);
}
public function getFileProxyUrl(string $url): Result
{
return $this->performRequest(
'notificationservice.File.create',
[
'url' => $url,
]
);
}
}