Method : del_subscriber

This method serves to unsubscribe a contact.

Field Type Description
email string Email address to be registered
Required parameters
listeid integer destination list
Required parameters
unsubscribemotive string Unsubscribe motive :
plus_interesse
trop_de_messages
pas_le_temps
spam
api_sg
autre
Unsubscribe duration integer Unsubscribe duration (days)
0 = definitive unsubscribe
                                        
                                           
// Suppression de John Doe de la liste 12345.
$sgApi
    ->set('listeid',    12345)
    ->set('email',      'John.Doe@domain.ext')
    ->set('force',      true);

$call = $sgApi->call('del_subscriber');

Warning: Undefined array key "admin" in /home/omaileo/public_html/doc/view/api/index.php on line 44