darvinstudio/darvin-bitrix24-bundle
Composer 安装命令:
composer require darvinstudio/darvin-bitrix24-bundle
包简介
This bundle provides Bitrix24 integration for Symfony-based applications.
关键字:
README 文档
README
This bundle provides Bitrix24 integration for Symfony-based applications.
Usage
use Darvin\Bitrix24Bundle\Client\ClientInterface; use Darvin\Bitrix24Bundle\Lead\LeadFactoryInterface; use Darvin\Bitrix24Bundle\Model\CRM\ProductRow; use Darvin\Bitrix24Bundle\Request\Command\Factory\CRM\LeadCommandFactoryInterface; use Darvin\Bitrix24Bundle\Request\Request; public function __construct( ClientInterface $client, LeadCommandFactoryInterface $leadCommandFactory, LeadFactoryInterface $leadFactory ) { $this->client = $client; $this->leadCommandFactory = $leadCommandFactory; $this->leadFactory = $leadFactory; } $request = new Request(); $request->addCommand($this->leadCommandFactory->createAddCommand($this->leadFactory->createLead('test'))); $request->addCommand($this->leadCommandFactory->createSetProductRowsCommand(new ProductRow(1))); $result = $this->client->send($request);
统计信息
- 总下载量: 740
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-06-03