mrstroz/yii2-salesmanago Salesmanago component for Yii 2 framework

yii2-salesmanago

Salesmanago component for Yii 2 framework

SALESmanago Technical API Documentation

Installation

The preferred way to install this extension is through composer.

Run

composer require "mrstroz/yii2-salesmanago" "*"

or add

"mrstroz/yii2-salesmanago": "*"

to the require section of your composer.json file.

Usage

  1. Add component to your config file

    'components' => [
    // ...
    'salesmanago' => [
        'class' => 'mrstroz\salesmanago\Salesmanago',
        'clientId' => 'xxxxxx',
        'apiKey' => 'xxxxxx',
        'apiSecret' => 'xxxxxx',
    ],
    ]
  2. 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.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.0.3 is the latest of 3 releases



MIT license
Stats
0 github stars & 0 github forks
0 downloads in the last day
4 downloads in the last 30 days
26 total downloads