baconmanager / rd-station-bundle
这是 symfony2 的一个包
dev-master
2020-01-20 16:51 UTC
This package is not auto-updated.
Last update: 2024-09-14 18:58:37 UTC
README
此包负责与RD Station API的集成
安装
要安装此包,只需运行以下命令
$ composer require baconmanager/rd-station-bundles
现在将以下包添加到 AppKernel.php 文件中
<?php // app/AppKernel.php public function registerBundles() { // ... new Bacon\Bundle\CoreBundle\BaconRDStationBundle(), // ... }
在 app/config/config.yml 文件中添加以下配置
bacon_rd_station: api: private_token: ... token: ...
使用API
注册和修改线索
<?php // src/AppBundle/Controller/DefaultController.php public function rdStationAction() { $api = $this->container->get('bacon_rd_station.api'); $return = $api->api('conversions','POST',array( 'email' => 'teste@gmail.com', 'nome' => 'Lead' )); }