1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

add client factory and LP methods whithout realisation

This commit is contained in:
Sergey Chazov 2020-08-31 13:15:47 +03:00
parent b33f3e05a0
commit fff8f0dbf5
2 changed files with 21 additions and 1 deletions

View file

@ -2931,4 +2931,20 @@ class ApiClient
return $params;
}
protected function confirmLpVerificationBySMS()
{
}
protected function sendSmsForLpVerification()
{
}
protected function checkStatusPlVerification()
{
}
}

View file

@ -9,16 +9,20 @@ class ClientFactory
{
/**
* create ClientAdapter with current data for access to CRM
* @return \Intaro\RetailCrm\Component\ApiClient\ClientAdapter|null
* @throws \Bitrix\Main\ArgumentNullException
* @throws \Bitrix\Main\ArgumentOutOfRangeException
*/
public static function creacteClientAdapter(): ?ClientAdapter
{
$apiHost = Option::get('intaro.retailcrm', 'api_host');
$apiKey = Option::get('intaro.retailcrm', 'api_key');
if (empty($apiHost) || empty($apiKey)) {
return null;
} else {
return new ClientAdapter;
return new ClientAdapter($apiHost, $apiKey);
}
}
}