earlhickey/pg-selligent
Composer 安装命令:
composer require earlhickey/pg-selligent
包简介
ZF2 module for Selligent Individual API
关键字:
README 文档
README
ZF2 module for Selligent Individual API
Installation
Main Setup
By cloning project
- Install the zf2-selligent ZF2 module
by cloning it into
./vendor/. - Clone this project into your
./vendor/directory.
With composer
-
Add this project in your composer.json:
"require": { "earlhickey/pg-selligent": "1.*" }
-
Now tell composer to download PgSelligent by running the command:
$ php composer.phar update
Post installation
-
Enabling it in your
application.config.phpfile.<?php return array( 'modules' => array( // ... 'PgSelligent', ), // ... );
-
Copy
./vendor/earlhickey/pg-selligent/config/pg-selligent.global.php.distto./config/autoload/pg-selligent.global.phpand change the values as desired.
Usage
-
Subscribe
// create recipient $recipient = new \stdClass(); $recipient->firstname = 'John'; $recipient->lastname = 'Doe'; $recipient->gender = ''; $recipient->dateOfBirth = ''; $recipient->email = 'johndoe@domain.com'; // Selligent email marketing opt-in $subscribe = $this->selligent()->subscribe($recipient);
-
Unsubscribe
// create recipient $recipient = new \stdClass(); $recipient->email = 'johndoe@domain.com'; // Selligent email marketing opt-out $unsubscribe = $this->selligent()->unsubscribe($recipient);
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-07-29