flamix/b24-lead
最新稳定版本:v1.9.2
Composer 安装命令:
composer require flamix/b24-lead
包简介
B24 Lead SDK
README 文档
README
Site - https://flamix.solutions/bitrix24/integrations/site/ Docs with API and examples - https://lead.app.flamix.solutions/docs
Install
composer require flamix/b24-lead
Usage
try { //If need change APP use changeSubDomain('wpapp') method \Flamix\Bitrix24\Lead::getInstance()->auth('YOUR.BITRIX24.COM', 'YOUR.API.KEY')->send(['FIELDS' => ['name' => 'Roman']]); } catch (\Exception $e) { $e->getMessage(); }
Switch plugin
This SDK can works with many all our "Website Integration". For default its work with general app - Site integrations. If you want switch to another module, please, youse method change changeSubDomain(). For example, if you installed "Integration with frameworks: Laravel, Symfony, Zend and Yii":
try { //If need change APP use changeSubDomain() method \Flamix\Bitrix24\Lead::getInstance()->changeSubDomain('leadframework')->auth('YOUR.BITRIX24.COM', 'YOUR.API.KEY')->send(['FIELDS' => ['name' => 'Roman']]); } catch (\Exception $e) { $e->getMessage(); }
Module domains:
- lead - Website Integration (Default);
- leadframework - Integration with frameworks: Laravel, Symfony, Zend and Yii
SmartUTM
When we didn't have UTM source, but have REFERER (for example, facebook.com) - we can set UTM_SOURCE=facebook.com Put this code in header sections in every page.
\Flamix\Bitrix24\SmartUTM::init();
Trace
Trace save visited pages and user devise.
\Flamix\Bitrix24\Trace::setPage('Your page title');
Trace & SmartUTM
\Flamix\Bitrix24\Trace::init('Your page title');
统计信息
- 总下载量: 2.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-01-14
