// UPDATE EXISTING SUBSCRIBER $response = $endpoint->update('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID', array('EMAIL' => '*****@*****.**', 'FNAME' => 'John', 'LNAME' => 'Doe Updated')); // DISPLAY RESPONSE echo '<hr />'; echo '<pre>'; print_r($response->body); /*===================================================================================*/ // CREATE / UPDATE EXISTING SUBSCRIBER $response = $endpoint->createUpdate('LIST-UNIQUE-ID', array('EMAIL' => '*****@*****.**', 'FNAME' => 'John', 'LNAME' => 'Doe Updated Second time')); // DISPLAY RESPONSE echo '<hr /><pre>'; print_r($response->body); echo '</pre>'; /*===================================================================================*/ // UNSUBSCRIBE existing subscriber, no email is sent, unsubscribe is silent $response = $endpoint->unsubscribe('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID'); // DISPLAY RESPONSE echo '<hr /><pre>'; print_r($response->body); echo '</pre>'; /*===================================================================================*/ // UNSUBSCRIBE existing subscriber by email address, no email is sent, unsubscribe is silent $response = $endpoint->unsubscribeByEmail('LIST-UNIQUE-ID', '*****@*****.**'); // DISPLAY RESPONSE echo '<hr /><pre>'; print_r($response->body); echo '</pre>'; /*===================================================================================*/ // DELETE SUBSCRIBER, no email is sent, delete is silent $response = $endpoint->delete('LIST-UNIQUE-ID', 'SUBSCRIBER-UNIQUE-ID'); // DISPLAY RESPONSE