Fiorino
New Member
Hi,
I register subscribers via API but I have a problem. I use function like this:
$response = $endpoint->createUpdate('vh063l971q3a9', array(
'EMAIL' => 'xxxxxxx@gmail.com',
'FNAME' => 'xxxxxx',
'LNAME' => 'xxxxx',
'details' => array('status' => 'confirmed', 'ip_address' => $_SERVER['REMOTE_ADDR'])
));
but details is ignored.
I check the code, and I found a small bug:
- when create subscriber the API use method MailWizzApi_Http_Client::METHOD_POST (MailWizzApi/EndPoint/ListSubscribers.php at line 78)
- in MailWizz Application in file /apps/api/controllers/List_subscribersController.php at line 350 I have this code:
function $request->getPut return null I need to replace this with $request->getPost
I register subscribers via API but I have a problem. I use function like this:
$response = $endpoint->createUpdate('vh063l971q3a9', array(
'EMAIL' => 'xxxxxxx@gmail.com',
'FNAME' => 'xxxxxx',
'LNAME' => 'xxxxx',
'details' => array('status' => 'confirmed', 'ip_address' => $_SERVER['REMOTE_ADDR'])
));
but details is ignored.
I check the code, and I found a small bug:
- when create subscriber the API use method MailWizzApi_Http_Client::METHOD_POST (MailWizzApi/EndPoint/ListSubscribers.php at line 78)
- in MailWizz Application in file /apps/api/controllers/List_subscribersController.php at line 350 I have this code:
PHP:
$details = (array)$request->getPut('details', array());