add client factory and LP methods whithout realisation
This commit is contained in:
parent
b33f3e05a0
commit
fff8f0dbf5
2 changed files with 21 additions and 1 deletions
|
@ -2931,4 +2931,20 @@ class ApiClient
|
|||
|
||||
return $params;
|
||||
}
|
||||
|
||||
protected function confirmLpVerificationBySMS()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected function sendSmsForLpVerification()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected function checkStatusPlVerification()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue