volumnet / raas-cms-bitrix24
Bitrix24 adapter for RAAS4.CMS
1.2.4
2024-02-05 19:03 UTC
Requires
- volumnet/bitrix24: ^1.2.4
Requires (Dev)
- phpunit/phpunit: ^5.3
- volumnet/raas.cms: ^4.2.17
- volumnet/raas.cms.shop: ^4.2.7
- volumnet/raas.kernel: ^4.2.14
README
Installation
composer require volumnet/raas-cms-bitrix
Usage
/**
* @param string $domain Bitrix24 domain
* @param string $webhook Webhook ID#
* @param int $assignedById Bitrix24 user ID# to assign lead to
*/
$notifier = new Notifier('https://domain.bitrix24.ru', 'webhookId', 10);
/**
* Notify about some item
* @param SOME $item Item to notify about
* @param boolean $reportAllFields true, if report all fields in comments; false if only not affected fields
* @return array<mixed>|false Response from the server or false in the case of error (also will output in syslog)
*/
$result = $notifier->notify(new \RAAS\CMS\Feedback(), true);
$result2 = $notifier->notify(new \RAAS\CMS\Shop\Order(), false);