magicalella/yii2-salesmanago
最新稳定版本:0.0.4
Composer 安装命令:
composer require magicalella/yii2-salesmanago
包简介
Salesmanago component for Yii 2 framework
README 文档
README
Salesmanago component for Yii 2 framework
SALESmanago Technical API Documentation
Installation
The preferred way to install this extension is through composer.
Run
composer require "magicalella/yii2-salesmanago" "*"
or add
"magicalella/yii2-salesmanago": "*"
to the require section of your composer.json file.
Usage
- Add component to your config file
'components' => [ // ... 'salesmanago' => [ 'class' => 'magicalella\salesmanago\Salesmanago', 'clientId' => 'xxxxxx', 'apiKey' => 'xxxxxx', 'apiSecret' => 'xxxxxx', 'endpoint' => 'xxxxxx', 'owner' => 'xxxxxx', ], ]
- Add new contact to SALESmanago
$salesmanago = Yii::$app->salesmanago; $result = $salesmanago->call('contact/upsert',[ contact' => [ 'email' => 'example@example.com', 'state' => 'CUSTOMER', ], 'owner' => 'owner@owner.com', 'tags' => [ 'TAG' ], 'properties' => array('page' => 'newsletter'), 'lang' => 'PL', 'useApiDoubleOptIn' => true, 'forceOptIn' => true, 'forceOptOut' => false, 'forcePhoneOptIn' => true, 'forcePhoneOptOut' => false ] );
Check SALESmanago Technical API Documentation for all available options.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-18