• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/yandex/toloka/baseapiobject.php
  • Класс: Bitrix\Sender\Integration\Yandex\Toloka\BaseApiObject
  • Вызов: BaseApiObject::checkResult
private function checkResult(): void
{
	$errorCode = $this->result['error'] ?? $this->result['code']?? false;

	if(!$errorCode)
	{
		return;
	}

	switch ($errorCode)
	{
		case 'verification_needed':
		case 'ACCESS_DENIED':
			COption::RemoveOption('sender', ApiRequest::ACCESS_CODE);
			throw new AccessDeniedException();
			break;
	}
}