Commit 0e149db4 authored by Shakarim Sapa's avatar Shakarim Sapa

- fix

parent 7e795245
<?php <?php
use \common\components\UnisenderAPI; use \common\components\UnisenderAPI;
use \yii\helpers\Json;
$email = 'bystrov@kupitsite.ru'; $email = 'bystrov@kupitsite.ru';
$sender = new UnisenderAPI(); $sender = new UnisenderAPI();
// Create the send list // Create the send list
$newList = $sender->createList(); $newList = $sender->createList();
$newListObject=\yii\helpers\Json::decode($newList); $newListObject=Json::decode($newList);
if (array_key_exists('result', $newListObject) && array_key_exists('id', $newListObject['result'])) { if (array_key_exists('result', $newListObject) && array_key_exists('id', $newListObject['result'])) {
$newListId=$newListObject['result']['id']; $newListId=$newListObject['result']['id'];
// Subscribe user to new List // Subscribe user to new List
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment