2017 © Pedro Peláez
 

yii2-extension yii2-flexmail

A wrapper for the Flexmail API

image

infoweb-internet-solutions/yii2-flexmail

A wrapper for the Flexmail API

  • Wednesday, March 30, 2016
  • by infoweb-internet-solutions
  • Repository
  • 2 Watchers
  • 0 Stars
  • 59 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 Flexmail Wrapper.

Installation

The preferred way to install this extension is through http://getcomposer.org/download/., (*1)

Either run, (*2)

php composer.phar require infoweb-internet-solutions/yii2-flexmail "dev-master"

or add, (*3)

"infoweb-internet-solutions/yii2-flexmail": "dev-master"

to the require section of your composer.json file., (*4)

Usage

Register the module in common/config/main.php, (*5)

'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:, (*6)

Yii::$app->flexmail->service('Contact')->create([
    'mailingListId'     => xxxxxx,
    'emailAddressType'  => [
        'emailAddress'  => 'example@email.com',
        'name'          => 'John',
        'surname'       => 'Doe',
        'company'       => 'Infoweb'
    ]
]);

The Versions

30/03 2016

dev-master

9999999-dev

A wrapper for the Flexmail API

  Sources   Download

MIT

The Requires

 

yii2 infoweb yii2-flexmail flexmail