MarketingService::send

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. MarketingService
  4. send
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/seo/ads/marketingservice.php
  • Класс: Bitrix\Sender\Integration\Seo\Ads\MarketingService
  • Вызов: MarketingService::send
static function send(\stdClass $config, array $contacts)
{
	if (!static::canUse())
	{
		return false;
	}
//
//		$audience = Marketing\Service::getAudience($config->type);
//		$audience->setAccountId($config->accountId);
//		$audience->enableQueueMode();

//		if ($config->autoRemoveDayNumber)
//		{
//			$audience->enableQueueAutoRemove($config->autoRemoveDayNumber);
//		}
//		else
//		{
//			$audience->disableQueueAutoRemove();
//		}
//
//		$audienceImportResult = $audience->addContacts(
//			$config->audienceId,
//			$contacts,
//			array(
//				'type' => $config->contactType
//			)
//		);
//
//		return $audienceImportResult->isSuccess();
	return true;
}

Добавить комментарий