infoweb-internet-solutions/yii2-flexmail
Composer 安装命令:
composer require infoweb-internet-solutions/yii2-flexmail
包简介
A wrapper for the Flexmail API
README 文档
README
Installation
The preferred way to install this extension is through http://getcomposer.org/download/.
Either run
php composer.phar require infoweb-internet-solutions/yii2-flexmail "dev-master"
or add
"infoweb-internet-solutions/yii2-flexmail": "dev-master"
to the require section of your composer.json file.
Usage
Register the module in common/config/main.php
'modules' => [ ... 'flexmail' => [ 'class' => 'infoweb\flexmail\Module', 'userId' => 'xxxxxx', 'userToken' => 'xxxxx-xxxxx-xxxxx-xxxxx-xxxxxxxxxx' ], ...
This will automatically register the infoweb\flexmail\components\Flexmail component that can be used to communicate with your Flexmail account. Below is an example of how to create a contact in Flexmail by using the Contact service:
Yii::$app->flexmail->service('Contact')->create([ 'mailingListId' => xxxxxx, 'emailAddressType' => [ 'emailAddress' => 'example@email.com', 'name' => 'John', 'surname' => 'Doe', 'company' => 'Infoweb' ] ]);
统计信息
- 总下载量: 65
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-28