PHP code example of magicalella / yii2-emarsys
1. Go to this page and download the library: Download magicalella/yii2-emarsys library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
magicalella / yii2-emarsys example snippets
'components' => [
// ...
'emarsys' => [
'class' => 'magicalella\emarsys\Emarsys',
'client_id' => 'xxxxxx',
'client_secret' => 'xxxxxx',
'endpoint_autentication' => 'xxxxxx',
'endpoint_api' => 'xxxxxx'
],
]
$emarsys = Yii::$app->emarsys;
$result = $emarsys->post('getdata/set-customers',$data)
);