delete subsriber through API

I tested this right now and it seems to be working just fine:
PHP:
...
$endpoint = new MailWizzApi_Endpoint_ListSubscribers();
$response = $endpoint->deleteByEmail('rt8323fle2d8e', 'support@mailwizz.com');
print_r($response);

Code:
MailWizzApi_Http_Response Object
(
    [url] => http://domain.com/api/index.php/lists/rt8323fle2d8e/subscribers/yy500vs4htd96
    [headers] => 
    [contentType] => application/json; charset=UTF-8
    [httpMessage] => OK
    [curlCode] => 0
    [curlMessage] => 
    [storeCurlInfo] => 
    [curlInfo] => 
    [body] => MailWizzApi_Params Object
        (
            [_data:MailWizzApi_Params:private] => Array
                (
                    [status] => success
                )

            [_readOnly:MailWizzApi_Params:private] => 
        )

    [request] => 
    [_httpCode:MailWizzApi_Http_Response:private] => 200
)
 
Back
Top