Hi.
I'm trying a simple call to API to subscribe a new user to an existing lists.
Long story sort the response from $response->itemAt('error') is "Not Found".
The users is not written in database.
Any help?
Kind Regards
I'm trying a simple call to API to subscribe a new user to an existing lists.
PHP:
require_once BASEPATH . "path/to/mailwizz/setup/class/";
$listUid = 'unique_id_of_the_list_in_wizzmail';
$endpoint = new MailWizzApi_Endpoint_ListSubscribers();
$response = $endpoint->create($listUid, array(
'EMAIL' => sanitize($email)
));
$response = $response->body;
if ($response->itemAt('status') == 'success') {
DO MY STUFF HERE
} else {
DO ERROR STUFF HERE
}
Long story sort the response from $response->itemAt('error') is "Not Found".
The users is not written in database.
Any help?
Kind Regards